blob: 80451a514d0d98accea5945d06bd4aa0d30006cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{ config, lib, pkgs, ... }:
let
cfg = config.nx.mullvad-vpn;
inherit (lib) mkOption types mkIf;
in
{
options.nx.mullvad-vpn = {
enable = mkOption {
description = "Privacy focues vpn";
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
services.mullvad-vpn.enable = true;
environment.systemPackages = [ pkgs.mullvad-vpn ];
};
}
|