mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
etc: Use a friendlier name than "etc-file"
This commit is contained in:
parent
1ba2015450
commit
e78bad5262
@ -112,8 +112,9 @@ in
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
target = mkDefault name;
|
target = mkDefault name;
|
||||||
source = mkIf (config.text != null)
|
source = mkIf (config.text != null) (
|
||||||
(mkDefault (pkgs.writeText "etc-file" config.text));
|
let name' = "etc-" + baseNameOf name;
|
||||||
|
in mkDefault (pkgs.writeText name' config.text));
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user