forked from mirrors/nixpkgs
etc: Use a friendlier name than "etc-file"
This commit is contained in:
parent
1ba2015450
commit
e78bad5262
|
@ -112,8 +112,9 @@ in
|
|||
|
||||
config = {
|
||||
target = mkDefault name;
|
||||
source = mkIf (config.text != null)
|
||||
(mkDefault (pkgs.writeText "etc-file" config.text));
|
||||
source = mkIf (config.text != null) (
|
||||
let name' = "etc-" + baseNameOf name;
|
||||
in mkDefault (pkgs.writeText name' config.text));
|
||||
};
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue