summary refs log tree commit diff
path: root/nixos/modules/config/power-management.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-08-27 23:41:15 +0200
committeraszlig <aszlig@redmoonstudios.org>2014-08-27 23:41:15 +0200
commit8a56a55bb442cbf2e2126d40df55e67b9aea0361 (patch)
tree916948eff016c868746d3a31b9e6f6120d33e449 /nixos/modules/config/power-management.nix
parent9667a4067c7e3f02a6a0fe8f1f3344c1cb1d7ef7 (diff)
downloadnixpkgs-8a56a55bb442cbf2e2126d40df55e67b9aea0361.tar
nixpkgs-8a56a55bb442cbf2e2126d40df55e67b9aea0361.tar.gz
nixpkgs-8a56a55bb442cbf2e2126d40df55e67b9aea0361.tar.bz2
nixpkgs-8a56a55bb442cbf2e2126d40df55e67b9aea0361.tar.lz
nixpkgs-8a56a55bb442cbf2e2126d40df55e67b9aea0361.tar.xz
nixpkgs-8a56a55bb442cbf2e2126d40df55e67b9aea0361.tar.zst
nixpkgs-8a56a55bb442cbf2e2126d40df55e67b9aea0361.zip
nixos/manual: Use literalExample when feasible.
Should bring most of the examples into a better consistency regarding
syntactic representation in the manual.

Thanks to @devhell for reporting.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/modules/config/power-management.nix')
-rw-r--r--nixos/modules/config/power-management.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/config/power-management.nix b/nixos/modules/config/power-management.nix
index 17f3ed00b9b..32a7987617a 100644
--- a/nixos/modules/config/power-management.nix
+++ b/nixos/modules/config/power-management.nix
@@ -35,7 +35,9 @@ in
       powerUpCommands = mkOption {
         type = types.lines;
         default = "";
-        example = "${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda";
+        example = literalExample ''
+          "''${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda"
+        '';
         description =
           ''
             Commands executed when the machine powers up.  That is,
@@ -47,7 +49,9 @@ in
       powerDownCommands = mkOption {
         type = types.lines;
         default = "";
-        example = "${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda";
+        example = literalExample ''
+          "''${pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda"
+        '';
         description =
           ''
             Commands executed when the machine powers down.  That is,