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