This commit is contained in:
2023-02-18 15:19:04 -05:00
parent 7b53993ae2
commit 20f6f6f51c
6 changed files with 150 additions and 31 deletions

20
new_modules/mullvad.nix Normal file
View File

@@ -0,0 +1,20 @@
_: { config, lib, pkgs, ... }:
{
# Add options for mullvad, a vpn
options.mullvad.enable = lib.mkEnableOption "mullvad";
# Install mullvad if desired
config = lib.mkIf config.mullvad.enable {
# Enable mullvad
services.mullvad-vpn.enable = true;
# Install programs related to mullvad
environment.systemPackages = with pkgs; [
# Desktop client for mullvad
mullvad-vpn
];
};
}