nixos-configs/devices/servivi/hardware-configuration.nix
matt1432 8807a5952d
All checks were successful
Discord / discord commits (push) Has been skipped
feat(servivi): use latest kernel
2024-02-11 12:31:29 -05:00

47 lines
824 B
Nix

{
config,
modulesPath,
pkgs,
...
}: {
nixpkgs.hostPlatform = "x86_64-linux";
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelModules = ["kvm-amd"];
initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
];
loader = {
timeout = 2;
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "btrfs";
};
"/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
};
};
zramSwap.enable = true;
hardware.cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware;
}