forked from mirrors/nixpkgs
Fix the manual service on the installation CD
This commit is contained in:
parent
74be2d9707
commit
6c6134c2d2
|
@ -73,19 +73,19 @@ in
|
|||
|
||||
boot.extraTTYs = mkIf cfg.showManual ["tty${cfg.ttyNumber}"];
|
||||
|
||||
jobs = mkIf cfg.showManual
|
||||
{ nixosManual =
|
||||
{ name = "nixos-manual";
|
||||
|
||||
description = "NixOS manual";
|
||||
|
||||
startOn = "started udev";
|
||||
|
||||
exec =
|
||||
''
|
||||
${cfg.browser} ${manual.manual}/share/doc/nixos/manual.html \
|
||||
< /dev/tty${toString cfg.ttyNumber} > /dev/tty${toString cfg.ttyNumber} 2>&1
|
||||
'';
|
||||
boot.systemd.services = optionalAttrs cfg.showManual
|
||||
{ "nixos-manual" =
|
||||
{ description = "NixOS Manual";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig =
|
||||
{ ExecStart = "${cfg.browser} ${manual.manual}/share/doc/nixos/manual.html";
|
||||
StandardInput = "tty";
|
||||
StandardOutput = "tty";
|
||||
TTYPath = "/dev/tty${cfg.ttyNumber}";
|
||||
TTYReset = true;
|
||||
TTYVTDisallocate = true;
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ in
|
|||
TTYPath = "/dev/${cfg.tty}";
|
||||
TTYReset = true;
|
||||
TTYVTDisallocate = true;
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue