git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/activation-script: fix formatting of example
commit392ca77d4c0c5e05ad23378de370ea964c29848f authorLeroy Hopson <git@leroy.geek.nz> dateSat 4 Jul 2015, 18:53 (11 years ago) parentc1e674c
1 file changed+13−12
nixos/modules/system/activation/activation-script.nix+13−12
nixos/modules/system/activation/activation-script.nix+13−12
@@ -30,18 +30,19 @@ in
3030 system.activationScripts = mkOption {
3131 default = {};
3232
33− example = {
34− stdio = {
35− text = ''
36− # Needed by some programs.
37− ln -sfn /proc/self/fd /dev/fd
38− ln -sfn /proc/self/fd/0 /dev/stdin
39− ln -sfn /proc/self/fd/1 /dev/stdout
40− ln -sfn /proc/self/fd/2 /dev/stderr
41− '';
42− deps = [];
43− };
44− };
33+ example = literalExample ''
34+ { stdio = {
35+ text = '''
36+ # Needed by some programs.
37+ ln -sfn /proc/self/fd /dev/fd
38+ ln -sfn /proc/self/fd/0 /dev/stdin
39+ ln -sfn /proc/self/fd/1 /dev/stdout
40+ ln -sfn /proc/self/fd/2 /dev/stderr
41+ ''';
42+ deps = [];
43+ };
44+ }
45+ '';
4546
4647 description = ''
4748 A set of shell script fragments that are executed when a NixOS