Merge pull request #236368 from SuperSandro2000/etc-dir-names
nixos/etc: keep directories in derivation name
This commit is contained in:
commit
07fd6694b5
|
@ -173,7 +173,7 @@ in
|
||||||
config = {
|
config = {
|
||||||
target = mkDefault name;
|
target = mkDefault name;
|
||||||
source = mkIf (config.text != null) (
|
source = mkIf (config.text != null) (
|
||||||
let name' = "etc-" + baseNameOf name;
|
let name' = "etc-" + lib.replaceStrings ["/"] ["-"] name;
|
||||||
in mkDerivedConfig options.text (pkgs.writeText name')
|
in mkDerivedConfig options.text (pkgs.writeText name')
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue