mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +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 = {
|
||||
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 New Issue
Block a user