diff --git a/nix-system-configs/modules/bootloader/seabios-assigned-iso-at-birth.nix b/nix-system-configs/modules/bootloader/seabios-assigned-iso-at-birth.nix new file mode 100644 index 0000000..4929045 --- /dev/null +++ b/nix-system-configs/modules/bootloader/seabios-assigned-iso-at-birth.nix @@ -0,0 +1,21 @@ +{ + config, + pkgs, + lib, + ... +}: { + # SeaBIOS / legacy BIOS bootloader settings for VMs + # Bootloader - GRUB for Legacy BIOS + boot.loader.systemd-boot.enable = lib.mkForce false; + boot.loader.grub = { + enable = true; + device = "/dev/sda"; + efiSupport = false; + }; + boot.initrd.availableKernelModules = ["virtio_pci" "virtio_scsi" "ahci" "sd_mod" "virtio_blk"]; + + fileSystems."/" = { + device = "/dev/sda1"; + fsType = "ext4"; + }; +} diff --git a/nix-system-configs/modules/bootloader/seabios.nix b/nix-system-configs/modules/bootloader/seabios-assigned-proxmox-at-birth.nix similarity index 99% rename from nix-system-configs/modules/bootloader/seabios.nix rename to nix-system-configs/modules/bootloader/seabios-assigned-proxmox-at-birth.nix index e38fabb..1360ffa 100644 --- a/nix-system-configs/modules/bootloader/seabios.nix +++ b/nix-system-configs/modules/bootloader/seabios-assigned-proxmox-at-birth.nix @@ -18,5 +18,4 @@ device = "/dev/vda1"; fsType = "ext4"; # Use "btrfs" or "xfs" if you formatted it differently }; - } diff --git a/nix-system-configs/modules/lix-default.nix b/nix-system-configs/modules/lix-default.nix index ba728e2..04f8c2f 100644 --- a/nix-system-configs/modules/lix-default.nix +++ b/nix-system-configs/modules/lix-default.nix @@ -42,7 +42,7 @@ }; # Enable SSH Passwordless Sudo - security.pam.enableSSHAgentAuth = true; + security.pam.sshAgentAuth.enable = true; security.pam.sshAgentAuth = { enable = true; authorizedKeysFiles = [ diff --git a/nix-system-configs/modules/system/forgejo.nix b/nix-system-configs/modules/system/forgejo.nix index 1f899ce..9f95bd0 100644 --- a/nix-system-configs/modules/system/forgejo.nix +++ b/nix-system-configs/modules/system/forgejo.nix @@ -39,7 +39,7 @@ in { ./modules/local/hostname_username.nix ./modules/local/networking_local.nix ./modules/toolsets/remote_building.nix - ./modules/bootloader/seabios.nix + ./modules/bootloader/seabios-assigned-proxmox-at-birth.nix ./modules/lix-default.nix ]; diff --git a/nix-system-configs/modules/system/traefik.nix b/nix-system-configs/modules/system/traefik.nix index ea99a1d..f4edbb8 100644 --- a/nix-system-configs/modules/system/traefik.nix +++ b/nix-system-configs/modules/system/traefik.nix @@ -31,7 +31,7 @@ ./modules/desktop-manager/sway_greetd_homemanager.nix ./modules/local/hostname_username.nix ./modules/local/networking_local.nix - ./modules/bootloader/seabios.nix + ./modules/bootloader/seabios-assigned-iso-at-birth.nix ./modules/lix-default.nix # Optionally: ./modules/toolsets/remote_building.nix ];