summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeroy Hopson <git@leroy.geek.nz>2015-07-04 18:53:26 +1200
committerLeroy Hopson <git@leroy.geek.nz>2016-02-27 22:25:40 +1300
commit392ca77d4c0c5e05ad23378de370ea964c29848f (patch)
treeac7fe9af520c83d16f9ab1a2ce6fa68f86787dbd
parentc1e674c4ca28a4f8871a57efa0dde36852e51cbb (diff)
nixos/activation-script: fix formatting of example
-rw-r--r--nixos/modules/system/activation/activation-script.nix25
1 files changed, 13 insertions, 12 deletions
diff --git a/nixos/modules/system/activation/activation-script.nix b/nixos/modules/system/activation/activation-script.nix
index d78ec0d7bf3d..854fa2f40b69 100644
--- a/nixos/modules/system/activation/activation-script.nix
+++ b/nixos/modules/system/activation/activation-script.nix
@@ -30,18 +30,19 @@ in
system.activationScripts = mkOption {
default = {};
- example = {
- stdio = {
- text = ''
- # Needed by some programs.
- ln -sfn /proc/self/fd /dev/fd
- ln -sfn /proc/self/fd/0 /dev/stdin
- ln -sfn /proc/self/fd/1 /dev/stdout
- ln -sfn /proc/self/fd/2 /dev/stderr
- '';
- deps = [];
- };
- };
+ example = literalExample ''
+ { stdio = {
+ text = '''
+ # Needed by some programs.
+ ln -sfn /proc/self/fd /dev/fd
+ ln -sfn /proc/self/fd/0 /dev/stdin
+ ln -sfn /proc/self/fd/1 /dev/stdout
+ ln -sfn /proc/self/fd/2 /dev/stderr
+ ''';
+ deps = [];
+ };
+ }
+ '';
description = ''
A set of shell script fragments that are executed when a NixOS