From 56f8206b859698cd3d8fe6f53c93e59a5aaf86bc Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 27 Apr 2016 10:27:52 -0500 Subject: Update `etc` example to not use a real config file A user noticed the example for `hosts`, took the `mode` permissions literally, and ended up with surprising behavior on their system. Updating the documentation to not reference a real config file which might have real permissions requirements. --- nixos/modules/system/etc/etc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/system') diff --git a/nixos/modules/system/etc/etc.nix b/nixos/modules/system/etc/etc.nix index 9d5b3db472c3..163f4f4106e8 100644 --- a/nixos/modules/system/etc/etc.nix +++ b/nixos/modules/system/etc/etc.nix @@ -36,7 +36,7 @@ in type = types.loaOf types.optionSet; default = {}; example = literalExample '' - { hosts = + { example-configuration-file = { source = "/nix/store/.../etc/dir/file.conf.example"; mode = "0440"; }; -- cgit 1.4.1