46 lines
927 B
Nix
46 lines
927 B
Nix
{ ... }:
|
|
{
|
|
boot = {
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
initrd.availableKernelModules = [
|
|
"nvme"
|
|
"xhci_pci"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
];
|
|
kernelModules = ["kvm-amd"];
|
|
# kernelParams = ["amd_pstate=active"];
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/648c6539-892c-40d7-8b07-23fe760df02a";
|
|
fsType = "ext4";
|
|
};
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/1D62-C30E";
|
|
fsType = "vfat";
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
};
|
|
};
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
|
|
hardware = {
|
|
enableRedistributableFirmware = true;
|
|
cpu.amd.updateMicrocode = true;
|
|
opengl = {
|
|
enable = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
# nvidia.prime = {
|
|
# amdgpuBusId = "PCI:05:00:0";
|
|
# nvidiaBusId = "PCI:01:00:0";
|
|
# };
|
|
};
|
|
}
|