Merge pull request #236368 from SuperSandro2000/etc-dir-names

nixos/etc: keep directories in derivation name
This commit is contained in:
Pol Dellaiera 2023-07-25 03:02:47 +02:00 committed by GitHub
commit 07fd6694b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')
);
};