nixos/activation-script: fix formatting of example
This commit is contained in:
parent
c1e674c4ca
commit
392ca77d4c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user