More vpn options
This commit is contained in:
parent
2f14d07f82
commit
c560a63182
@ -16,6 +16,11 @@ in
|
||||
{
|
||||
options.pia = {
|
||||
enable = lib.mkEnableOption "Enable private internet access";
|
||||
server = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "us-washingtondc.privacy.network";
|
||||
example = "swiss.privacy.network";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@ -26,7 +31,7 @@ in
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote us-washingtondc.privacy.network 1198
|
||||
remote ${cfg.server} 1198
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
|
@ -43,6 +43,9 @@
|
||||
users.groups.transmission.gid = config.ids.gids.transmission;
|
||||
|
||||
containers.vpn = mkVpnContainer pkgs "/data/samba/Public/Plex" {
|
||||
# swiss vpn
|
||||
pia.server = "swiss.privacy.network";
|
||||
|
||||
# servarr services
|
||||
services.prowlarr.enable = true;
|
||||
services.sonarr.enable = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user