[Backport release-24.11] nixos/libreswan: use environment.etc."ipsec.secrets".text (#357775)

This commit is contained in:
Naïm Camille Favier 2024-11-21 08:19:13 +01:00 committed by GitHub
commit f17a91f464
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,7 +125,9 @@ in
# Install configuration files # Install configuration files
environment.etc = { environment.etc = {
"ipsec.secrets".source = "${pkgs.libreswan}/etc/ipsec.secrets"; "ipsec.secrets".text = ''
include ${pkgs.libreswan}/etc/ipsec.secrets
'';
"ipsec.conf".source = "${pkgs.libreswan}/etc/ipsec.conf"; "ipsec.conf".source = "${pkgs.libreswan}/etc/ipsec.conf";
"ipsec.d/01-nixos.conf".source = configFile; "ipsec.d/01-nixos.conf".source = configFile;
} // policyFiles; } // policyFiles;