nixos-config/hosts/nixdesk/hardware.nix
2024-03-17 11:26:16 +01:00

47 lines
951 B
Nix

{...}: {
boot = {
initrd = {
availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
];
kernelModules = ["amdgpu"];
};
kernelModules = ["kvm-amd"];
loader = {
timeout = 10;
systemd-boot = {
enable = true;
consoleMode = "max";
configurationLimit = 120;
editor = false;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/0c080ce8-26f0-454b-a100-1ca9d5308931";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/D23A-89BF";
fsType = "vfat";
};
};
hardware.enableAllFirmware = true;
services.xserver.videoDrivers = ["amdgpu"];
nixpkgs.hostPlatform.system = "x86_64-linux";
hardware.cpu.amd.updateMicrocode = true;
}