nixos/libreswan: use environment.etc."ipsec.secrets".text

This is to ensure compatibility with the networkmanager module, which
uses the `text` option.

(cherry picked from commit b294762bb9)
This commit is contained in:
Naïm Favier 2024-11-20 19:59:02 +01:00 committed by github-actions[bot]
parent ed0df42190
commit 65933c9eb9

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;