diff --git a/hosts/template2/bootstrap.nix b/hosts/template2/bootstrap.nix index 441185c..7db16ca 100644 --- a/hosts/template2/bootstrap.nix +++ b/hosts/template2/bootstrap.nix @@ -2,12 +2,10 @@ let bootstrap-script = pkgs.writeShellApplication { name = "nixos-bootstrap"; - runtimeInputs = with pkgs; [ systemd curl nixos-rebuild jq git ncurses ]; + runtimeInputs = with pkgs; [ systemd curl nixos-rebuild jq git ]; text = '' set -euo pipefail - # Clear screen and show bootstrap banner - clear echo "================================================================================" echo " NIXOS BOOTSTRAP IN PROGRESS" echo "================================================================================" @@ -110,11 +108,6 @@ in Check status: journalctl -fu nixos-bootstrap ''; - # Disable getty on tty1 so bootstrap output is visible - systemd.services."getty@tty1" = { - enable = false; - }; - systemd.services."nixos-bootstrap" = { description = "Bootstrap NixOS configuration from flake on first boot"; @@ -134,12 +127,9 @@ in # Read environment variables from cloud-init (set by cloud-init write_files) EnvironmentFile = "-/run/cloud-init-env"; - # Output to tty1 for visibility on console - StandardOutput = "tty"; - StandardError = "tty"; - TTYPath = "/dev/tty1"; - TTYReset = true; - TTYVHangup = true; + # Log to journal and console + StandardOutput = "journal+console"; + StandardError = "journal+console"; }; }; }