3
0
Fork 0
forked from mirrors/nixpkgs

Fix the manual service on the installation CD

This commit is contained in:
Eelco Dolstra 2012-10-04 16:15:10 -04:00
parent 74be2d9707
commit 6c6134c2d2
2 changed files with 14 additions and 13 deletions

View file

@ -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";
};
};
};

View file

@ -50,6 +50,7 @@ in
TTYPath = "/dev/${cfg.tty}";
TTYReset = true;
TTYVTDisallocate = true;
Restart = "always";
};
};