nixos/activation-script: fix formatting of example

This commit is contained in:
Leroy Hopson 2015-07-04 18:53:26 +12:00
parent c1e674c4ca
commit 392ca77d4c

View File

@ -30,18 +30,19 @@ in
system.activationScripts = mkOption { system.activationScripts = mkOption {
default = {}; default = {};
example = { example = literalExample ''
stdio = { { stdio = {
text = '' text = '''
# Needed by some programs. # Needed by some programs.
ln -sfn /proc/self/fd /dev/fd ln -sfn /proc/self/fd /dev/fd
ln -sfn /proc/self/fd/0 /dev/stdin ln -sfn /proc/self/fd/0 /dev/stdin
ln -sfn /proc/self/fd/1 /dev/stdout ln -sfn /proc/self/fd/1 /dev/stdout
ln -sfn /proc/self/fd/2 /dev/stderr ln -sfn /proc/self/fd/2 /dev/stderr
''; ''';
deps = []; deps = [];
}; };
}; }
'';
description = '' description = ''
A set of shell script fragments that are executed when a NixOS A set of shell script fragments that are executed when a NixOS