🚀 add mullvad
This commit is contained in:
parent
a793a65fbd
commit
88042fbeec
3 changed files with 28 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
imports = [
|
||||
./dunst.nix
|
||||
./kdeconnect.nix
|
||||
./mullvad.nix
|
||||
./openconnect.nix
|
||||
./openvpn.nix
|
||||
./picom.nix
|
||||
|
|
26
modules/services/mullvad.nix
Normal file
26
modules/services/mullvad.nix
Normal file
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue