config/modules/nixos/services/vpn/default.nix
2025-07-27 16:17:28 -04:00

21 lines
331 B
Nix

{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.services.vpn;
in {
options.services.vpn = with types; {
enable = mkBoolOpt false "Enable VPN service(s)";
};
config = mkIf cfg.enable {
services.mullvad-vpn = {
enable = true;
package = nixos-stable.mullvad;
};
};
}