aboutsummaryrefslogtreecommitdiff
path: root/modules/hosts/mullvad-vpn
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hosts/mullvad-vpn')
-rw-r--r--modules/hosts/mullvad-vpn/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/hosts/mullvad-vpn/default.nix b/modules/hosts/mullvad-vpn/default.nix
new file mode 100644
index 0000000..80451a5
--- /dev/null
+++ b/modules/hosts/mullvad-vpn/default.nix
@@ -0,0 +1,18 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.nx.mullvad-vpn;
+ inherit (lib) mkOption types mkIf;
+in
+{
+ options.nx.mullvad-vpn = {
+ enable = mkOption {
+ description = "Privacy focues vpn";
+ type = types.bool;
+ default = false;
+ };
+ };
+ config = mkIf cfg.enable {
+ services.mullvad-vpn.enable = true;
+ environment.systemPackages = [ pkgs.mullvad-vpn ];
+ };
+}