mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
nixos/libreswan: use environment.etc."ipsec.secrets".text
This is to ensure compatibility with the networkmanager module, which uses the `text` option.
This commit is contained in:
parent
6d2d99ef57
commit
b294762bb9
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue