config/modules/nixos/services/vpn/default.nix

22 lines
331 B
Nix
Raw Normal View History

2024-05-23 20:26:30 +00:00
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.services.vpn;
in {
options.services.vpn = with types; {
2024-05-23 21:24:09 +00:00
enable = mkBoolOpt false "Enable VPN service(s)";
2024-05-23 20:26:30 +00:00
};
config = mkIf cfg.enable {
2025-03-22 16:03:07 -04:00
services.mullvad-vpn = {
2025-07-27 16:17:28 -04:00
enable = true;
2025-03-22 16:03:07 -04:00
package = nixos-stable.mullvad;
};
2024-05-23 20:26:30 +00:00
};
}