Files
nixconfig/systems/gateway/hardware.nix
2026-05-01 22:49:06 +02:00

24 lines
728 B
Nix

{ config, lib, pkgs, modulesPath, ... }: {
boot.kernelPackages = pkgs.linuxPackages_latest;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules =
[ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
boot.loader.grub.enable = lib.mkForce false;
boot.loader.systemd-boot.enable = true;
# boot.loader.efi.efiSysMountPoint = "/boot"; # Changed from /boot/efi
# boot.loader.efi.canTouchEfiVariables = true;
fileSystems."/" = {
device = "/dev/sda3";
fsType = "btrfs";
};
fileSystems."/boot" = {
device = "/dev/sda2";
fsType = "vfat";
options = [ "defaults" ];
};
}