nixos/modules/desktop/wireguard/default.nix

21 lines
314 B
Nix
Raw Normal View History

2023-09-19 13:41:16 +04:00
{
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;
};
}