summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2016-04-27 10:27:52 -0500
committerGraham Christensen <graham@grahamc.com>2016-04-27 10:27:52 -0500
commit56f8206b859698cd3d8fe6f53c93e59a5aaf86bc (patch)
tree84d65159bcbe2d410a7cd15023d69694967bf3d0 /nixos/modules/system
parent0307ab1f3743cc0bc0c4a0439dcd5df0c68f8605 (diff)
downloadnixlib-56f8206b859698cd3d8fe6f53c93e59a5aaf86bc.tar
nixlib-56f8206b859698cd3d8fe6f53c93e59a5aaf86bc.tar.gz
nixlib-56f8206b859698cd3d8fe6f53c93e59a5aaf86bc.tar.bz2
nixlib-56f8206b859698cd3d8fe6f53c93e59a5aaf86bc.tar.lz
nixlib-56f8206b859698cd3d8fe6f53c93e59a5aaf86bc.tar.xz
nixlib-56f8206b859698cd3d8fe6f53c93e59a5aaf86bc.tar.zst
nixlib-56f8206b859698cd3d8fe6f53c93e59a5aaf86bc.zip
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.
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/etc/etc.nix2
1 files changed, 1 insertions, 1 deletions
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";
             };