🚀 add mullvad
parent
a793a65fbd
commit
88042fbeec
|
@ -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
|
||||
|
|
|
@ -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 New Issue