diff options
author | Scott Olson <scott@solson.me> | 2016-06-19 01:02:24 -0600 |
---|---|---|
committer | Scott Olson <scott@solson.me> | 2016-06-19 01:21:22 -0600 |
commit | 6d5ed7d971487db131462692f7bcfbc098169a76 (patch) | |
tree | 10d8f55eb415ff4e539292b31eedea67850cebdd /nixos/modules/tasks/filesystems.nix | |
parent | 20a8349d625814d6c7d9ad39f2b83a2a02e999f5 (diff) | |
download | nixlib-6d5ed7d971487db131462692f7bcfbc098169a76.tar nixlib-6d5ed7d971487db131462692f7bcfbc098169a76.tar.gz nixlib-6d5ed7d971487db131462692f7bcfbc098169a76.tar.bz2 nixlib-6d5ed7d971487db131462692f7bcfbc098169a76.tar.lz nixlib-6d5ed7d971487db131462692f7bcfbc098169a76.tar.xz nixlib-6d5ed7d971487db131462692f7bcfbc098169a76.tar.zst nixlib-6d5ed7d971487db131462692f7bcfbc098169a76.zip |
Make fileSystems example literal.
This fixes the attribute names showing up unquoted in the options documentation.
Diffstat (limited to 'nixos/modules/tasks/filesystems.nix')
-rw-r--r-- | nixos/modules/tasks/filesystems.nix | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix index dd351306cb63..cf8232c36154 100644 --- a/nixos/modules/tasks/filesystems.nix +++ b/nixos/modules/tasks/filesystems.nix @@ -111,15 +111,17 @@ in fileSystems = mkOption { default = {}; - example = { - "/".device = "/dev/hda1"; - "/data" = { - device = "/dev/hda2"; - fsType = "ext3"; - options = [ "data=journal" ]; - }; - "/bigdisk".label = "bigdisk"; - }; + example = literalExample '' + { + "/".device = "/dev/hda1"; + "/data" = { + device = "/dev/hda2"; + fsType = "ext3"; + options = [ "data=journal" ]; + }; + "/bigdisk".label = "bigdisk"; + } + ''; type = types.loaOf types.optionSet; options = [ fileSystemOpts ]; description = '' |