Skip to content

Commit

Permalink
nixos/libreswan: use environment.etc."ipsec.secrets".text (#357626)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncfavier authored Nov 21, 2024
2 parents 33a604f + b294762 commit 6735eef
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 6735eef

Please sign in to comment.