This commit is contained in:
soraefir
2026-05-02 10:32:08 +02:00
parent e24e96f091
commit ae82eaa500
2 changed files with 10 additions and 11 deletions

View File

@@ -1,15 +1,5 @@
{ config, lib, inputs, ... }: {
imports = [ ./hardware.nix ];
boot.loader.systemd-boot.enable = lib.mkForce true;
boot.loader.efi.canTouchEfiVariables = lib.mkForce false;
boot.loader.grub = {
enable = true;
# device = "nodev"; # Required for EFI#
efiSupport = true;
efiInstallAsRemovable = true;# CRITICAL: This overwrites /boot/EFI/BOOT/BOOTX64.EFI
};
services.openssh.enable = true;
services.openssh.authorizedKeysFiles = [

View File

@@ -1,7 +1,16 @@
{ config, lib, pkgs, modulesPath, ... }: {
boot.kernelPackages = pkgs.linuxPackages_latest;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.grub.device = "/dev/sda";
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.loader.efi.canTouchEfiVariables = lib.mkForce false;
boot.loader.grub = {
enable = true;
device = "/dev/sda";
efiSupport = true;
efiInstallAsRemovable = true;# CRITICAL: This overwrites /boot/EFI/BOOT/BOOTX64.EFI
};
boot.initrd.availableKernelModules =
[ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];