18 lines
368 B
Nix
18 lines
368 B
Nix
{ config, lib, ... }: {
|
|
|
|
options = {
|
|
sysconfig.wireguard.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.sysconfig.wireguard.enable {
|
|
networking.wireguard = {
|
|
enable = true;
|
|
interfaces.wg0 = {
|
|
};
|
|
};
|
|
};
|
|
}
|