diff options
author | Leroy Hopson <git@leroy.geek.nz> | 2015-07-04 18:53:26 +1200 |
---|---|---|
committer | Leroy Hopson <git@leroy.geek.nz> | 2016-02-27 22:25:40 +1300 |
commit | 392ca77d4c0c5e05ad23378de370ea964c29848f (patch) | |
tree | ac7fe9af520c83d16f9ab1a2ce6fa68f86787dbd | |
parent | c1e674c4ca28a4f8871a57efa0dde36852e51cbb (diff) | |
download | nixpkgs-392ca77d4c0c5e05ad23378de370ea964c29848f.tar nixpkgs-392ca77d4c0c5e05ad23378de370ea964c29848f.tar.gz nixpkgs-392ca77d4c0c5e05ad23378de370ea964c29848f.tar.bz2 nixpkgs-392ca77d4c0c5e05ad23378de370ea964c29848f.tar.lz nixpkgs-392ca77d4c0c5e05ad23378de370ea964c29848f.tar.xz nixpkgs-392ca77d4c0c5e05ad23378de370ea964c29848f.tar.zst nixpkgs-392ca77d4c0c5e05ad23378de370ea964c29848f.zip |
nixos/activation-script: fix formatting of example
-rw-r--r-- | nixos/modules/system/activation/activation-script.nix | 25 |
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 d78ec0d7bf3..854fa2f40b6 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 |