🚀 add mullvad

dev-docs
Moritz Böhme 2022-09-27 14:10:24 +02:00
parent a793a65fbd
commit 88042fbeec
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
3 changed files with 28 additions and 0 deletions

View File

@ -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;

View File

@ -6,6 +6,7 @@
imports = [
./dunst.nix
./kdeconnect.nix
./mullvad.nix
./openconnect.nix
./openvpn.nix
./picom.nix

View 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
];
};
}