aboutsummaryrefslogtreecommitdiff
path: root/modules/hosts
diff options
context:
space:
mode:
authorLeander Scherer <leander@schererleander.de>2026-01-08 18:41:55 +0100
committerLeander Scherer <leander@schererleander.de>2026-01-08 19:08:13 +0100
commitec45aae780da92e12cf82c5a32e336b14b7540ba (patch)
treeabe21714d5a8f0c9d2ddac7c50761c217df2b55a /modules/hosts
parenteb343620550798ee7ed161cba66e107e73120307 (diff)
feat(modules): setup a module for mullvad-vpn
Diffstat (limited to 'modules/hosts')
-rw-r--r--modules/hosts/default.nix1
-rw-r--r--modules/hosts/mullvad-vpn/default.nix18
2 files changed, 19 insertions, 0 deletions
diff --git a/modules/hosts/default.nix b/modules/hosts/default.nix
index 70597cd..d8a8927 100644
--- a/modules/hosts/default.nix
+++ b/modules/hosts/default.nix
@@ -10,5 +10,6 @@
./server
./wooting
./steam
+ ./mullvad-vpn
];
}
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 ];
+ };
+}