🚀 add mullvad

This commit is contained in:
Moritz Böhme 2022-09-27 14:10:24 +02:00
parent a793a65fbd
commit 88042fbeec
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
3 changed files with 28 additions and 0 deletions

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