Fix the installer image.

This commit is contained in:
Tom Alexander 2025-11-25 21:13:53 -05:00
parent 9099c4b67e
commit b743421749
Signed by: talexander
GPG Key ID: 36C99E8B3C39D85F
2 changed files with 20 additions and 17 deletions

View File

@ -149,6 +149,7 @@
};
}
)
({ nixpkgs.hostPlatform.system = nodeConfig.system; })
];
};
in

View File

@ -10,7 +10,7 @@ let
installer = pkgs.writeShellApplication {
name = "installer";
runtimeInputs = with pkgs; [
clevis
# clevis
dosfstools
e2fsprogs
gawk
@ -26,10 +26,10 @@ let
nixos-install --no-channel-copy --no-root-password --option substituters "" --system ${targetSystem.config.system.build.toplevel}
'';
};
# installerFailsafe = pkgs.writeShellScript "failsafe" ''
# ${lib.getExe installer} || echo "ERROR: Installation failure!"
# sleep 3600
# '';
installerFailsafe = pkgs.writeShellScript "failsafe" ''
${lib.getExe installer} || echo "ERROR: Installation failure!"
sleep 3600
'';
in
{
imports = [
@ -37,9 +37,11 @@ in
(modulesPath + "/profiles/all-hardware.nix")
];
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_6_17;
boot.zfs.package = pkgs.zfs_unstable;
boot.kernelParams = [
"quiet"
# "systemd.unit=getty.target"
"systemd.unit=getty.target"
];
boot.supportedFilesystems.zfs = true;
boot.initrd.systemd.enable = true;
@ -54,17 +56,17 @@ in
installer
];
# systemd.services."getty@tty1" = {
# overrideStrategy = "asDropin";
# serviceConfig = {
# ExecStart = [
# ""
# installerFailsafe
# ];
# Restart = "no";
# StandardInput = "null";
# };
# };
systemd.services."getty@tty1" = {
overrideStrategy = "asDropin";
serviceConfig = {
ExecStart = [
""
installerFailsafe
];
Restart = "no";
StandardInput = "null";
};
};
# system.stateVersion = lib.mkDefault lib.trivial.release;
system.stateVersion = "24.11";