diff --git a/modules/profiles/desktop.nix b/modules/profiles/desktop.nix index 0588d7e..320beb0 100644 --- a/modules/profiles/desktop.nix +++ b/modules/profiles/desktop.nix @@ -88,6 +88,7 @@ with lib; { services = { dunst.enable = true; kdeconnect.enable = true; + mullvad.enable = true; openconnect.enable = true; openvpn.enable = true; picom.enable = true; diff --git a/modules/services/default.nix b/modules/services/default.nix index 0dc2d3d..4d2b238 100644 --- a/modules/services/default.nix +++ b/modules/services/default.nix @@ -6,6 +6,7 @@ imports = [ ./dunst.nix ./kdeconnect.nix + ./mullvad.nix ./openconnect.nix ./openvpn.nix ./picom.nix diff --git a/modules/services/mullvad.nix b/modules/services/mullvad.nix new file mode 100644 index 0000000..dac4f74 --- /dev/null +++ b/modules/services/mullvad.nix @@ -0,0 +1,26 @@ +{ config +, lib +, pkgs +, ... +}: + +with lib; +let + cfg = config.my.services.mullvad; +in +{ + options.my.services.mullvad = { + enable = mkOption { + default = false; + type = types.bool; + example = true; + }; + }; + + config = lib.mkIf cfg.enable { + services.mullvad-vpn.enable = true; + users.users.moritz.packages = with pkgs; [ + mullvad-vpn + ]; + }; +}