nixos-config/profiles/mullvad.nix

15 lines
417 B
Nix
Raw Normal View History

2021-09-15 23:17:00 +03:00
{ pkgs, lib, config, ... }:
let
vpn = config.deviceSpecific.wireguard;
in {
config = lib.mkIf vpn.enable {
services.mullvad-vpn.enable = true;
2022-12-07 22:05:00 +03:00
services.mullvad-vpn.enableExcludeWrapper = true;
2022-12-14 23:46:25 +03:00
services.mullvad-vpn.package = pkgs.mullvad-vpn;
2021-09-15 23:17:00 +03:00
startupApplications = [ "${pkgs.mullvad-vpn}/share/mullvad/mullvad-gui" ];
2022-12-14 23:46:25 +03:00
persist.state.homeDirectories = [
".config/Mullvad VPN"
];
2021-09-15 23:17:00 +03:00
};
}