nixos/modules/desktop/wireguard/default.nix
2023-09-20 07:35:06 +04:00

20 lines
314 B
Nix

{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.wireguard;
in {
options.modules.desktop.wireguard = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
# todo declaritivly setting it up
networking.wireguard.enable = true;
};
}