dotfiles/modules/services/mullvad.nix

21 lines
305 B
Nix
Raw Normal View History

2022-09-27 14:10:24 +02:00
{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.services.mullvad;
in
{
2022-10-15 20:00:09 +02:00
options.my.services.mullvad.enable = mkEnableOption "mullvad";
2022-09-27 14:10:24 +02:00
config = lib.mkIf cfg.enable {
services.mullvad-vpn.enable = true;
users.users.moritz.packages = with pkgs; [
mullvad-vpn
];
};
}