mirror of
https://github.com/sstent/nixfotfiles_1.git
synced 2026-04-03 19:43:46 +00:00
x
This commit is contained in:
20
new_modules/mullvad.nix
Normal file
20
new_modules/mullvad.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user