Skip to content

Commit

Permalink
system/activation: mention deps attr in activationScripts example (#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
misuzu authored Dec 11, 2024
2 parents 7ea7a19 + df8e6f7 commit 21e39e9
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions nixos/modules/system/activation/activation-script.nix
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,19 @@ in
default = {};

example = literalExpression ''
{ 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
''';
{
stdio = {
# Run after /dev has been mounted
deps = [ "specialfs" ];
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
''';
};
}
'';

Expand Down

0 comments on commit 21e39e9

Please sign in to comment.