Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/etc: keep directories in derivation name

This changes eg. etc-timesyncd.conf to etc-systemd-timesyncd.conf which
better reflects the actual location of the config file.

+1 -1
+1 -1
nixos/modules/system/etc/etc.nix
··· 173 config = { 174 target = mkDefault name; 175 source = mkIf (config.text != null) ( 176 - let name' = "etc-" + baseNameOf name; 177 in mkDerivedConfig options.text (pkgs.writeText name') 178 ); 179 };
··· 173 config = { 174 target = mkDefault name; 175 source = mkIf (config.text != null) ( 176 + let name' = "etc-" + lib.replaceStrings ["/"] ["-"] name; 177 in mkDerivedConfig options.text (pkgs.writeText name') 178 ); 179 };