diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-12-30 15:13:43 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-12-30 15:17:30 +0100 |
commit | e78bad526286b392808b613e2435a9d4920d4b79 (patch) | |
tree | 2dff434a84d70d371a10a1e2b378528a9229b8b4 /nixos/modules/system/etc/etc.nix | |
parent | 1ba2015450263396bf47a108caba6fd66b1d5e79 (diff) |
etc: Use a friendlier name than "etc-file"
Diffstat (limited to 'nixos/modules/system/etc/etc.nix')
-rw-r--r-- | nixos/modules/system/etc/etc.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/system/etc/etc.nix b/nixos/modules/system/etc/etc.nix index 300ae0acda53..9d5b3db472c3 100644 --- a/nixos/modules/system/etc/etc.nix +++ b/nixos/modules/system/etc/etc.nix @@ -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)); }; }); |