etc: Use a friendlier name than "etc-file"

This commit is contained in:
Eelco Dolstra 2015-12-30 15:13:43 +01:00
parent 1ba2015450
commit e78bad5262

View File

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