44 lines
767 B
Nix
44 lines
767 B
Nix
|
{
|
||
|
config,
|
||
|
modulesPath,
|
||
|
...
|
||
|
}: {
|
||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||
|
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
||
|
|
||
|
boot = {
|
||
|
loader = {
|
||
|
timeout = 2;
|
||
|
|
||
|
systemd-boot.enable = true;
|
||
|
efi.canTouchEfiVariables = true;
|
||
|
};
|
||
|
|
||
|
kernelModules = ["kvm-amd"];
|
||
|
initrd.availableKernelModules = [
|
||
|
"nvme"
|
||
|
"xhci_pci"
|
||
|
"ahci"
|
||
|
"usb_storage"
|
||
|
"usbhid"
|
||
|
"sd_mod"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
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;
|
||
|
}
|