Skip to content

Commit

Permalink
[Backport release-24.11] nixos/libreswan: use `environment.etc."ipsec…
Browse files Browse the repository at this point in the history
….secrets".text` (#357775)
  • Loading branch information
ncfavier authored Nov 21, 2024
2 parents ed0df42 + 65933c9 commit f17a91f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos/modules/services/networking/libreswan.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ in

# Install configuration files
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.d/01-nixos.conf".source = configFile;
} // policyFiles;
Expand Down

0 comments on commit f17a91f

Please sign in to comment.