modified: auto-installer/installer.nix
This commit is contained in:
@@ -54,21 +54,21 @@ environment.etc."git-credentials".text =
|
|||||||
environment.etc."root/auto-install.sh".mode = "0755";
|
environment.etc."root/auto-install.sh".mode = "0755";
|
||||||
|
|
||||||
systemd.services.autoInstallInteractive = {
|
systemd.services.autoInstallInteractive = {
|
||||||
description = "Interactive NixOS installer on tty2";
|
description = "Interactive NixOS installer on tty1";
|
||||||
wants = [ "getty@tty2.service" ];
|
conflicts = [ "getty@tty1.service" ];
|
||||||
after = [ "getty@tty2.service" ];
|
after = [ "getty@tty1.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
StandardInput = "tty";
|
StandardInput = "tty";
|
||||||
StandardOutput = "inherit";
|
StandardOutput = "inherit";
|
||||||
TTYPath = "/dev/tty2";
|
TTYPath = "/dev/tty1";
|
||||||
TTYReset = true;
|
TTYReset = true;
|
||||||
TTYVHangup = true;
|
TTYVHangup = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Run script attached to tty2
|
# Run script attached to tty1
|
||||||
script = "exec /root/auto-install.sh";
|
script = "exec /root/auto-install.sh";
|
||||||
};
|
};
|
||||||
# systemd.services.autoInstall = {
|
# systemd.services.autoInstall = {
|
||||||
|
|||||||
Reference in New Issue
Block a user