mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
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.
This commit is contained in:
parent
e2c555799c
commit
fadc824f20
@ -173,7 +173,7 @@ in
|
||||
config = {
|
||||
target = mkDefault name;
|
||||
source = mkIf (config.text != null) (
|
||||
let name' = "etc-" + baseNameOf name;
|
||||
let name' = "etc-" + lib.replaceStrings ["/"] ["-"] name;
|
||||
in mkDerivedConfig options.text (pkgs.writeText name')
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user