30 current 2025-10-07 16:33:54 25.05.20251001.5b5be50 6.12.49 *
This commit is contained in:
@@ -19,18 +19,15 @@ in
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# enable pia mexico w/ openvpn
|
||||
config = lib.mkIf cfg.openvpn_pia_mexico {
|
||||
services.openvpn.servers.pia-mexico = {
|
||||
enable = true;
|
||||
config = "config ${config.sops.secrets."openvpn_pia_mexico_config".path}";
|
||||
};
|
||||
sops.secrets = {
|
||||
"openvpn_pia_mexico_config" = {
|
||||
owner = "root";
|
||||
group = "root";
|
||||
};
|
||||
services.openvpn.servers.pia-mexico = lib.mkIf cfg.openvpn_pia_mexico {
|
||||
enable = true;
|
||||
config = "config ${config.sops.secrets."openvpn_pia_mexico_config".path}";
|
||||
};
|
||||
sops.secrets = {
|
||||
"openvpn_pia_mexico_config" = {
|
||||
owner = "root";
|
||||
group = "root";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user