48 lines
819 B
Nix
48 lines
819 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;
|
|
};
|
|
|
|
initrd.availableKernelModules = [
|
|
"xhci_pci"
|
|
"ahci"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
];
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-label/NIXROOT";
|
|
fsType = "btrfs";
|
|
};
|
|
|
|
"/boot" = {
|
|
device = "/dev/disk/by-label/NIXBOOT";
|
|
fsType = "vfat";
|
|
};
|
|
};
|
|
|
|
swapDevices = [
|
|
{
|
|
device = "/var/lib/swapfile";
|
|
size = 16 * 1024;
|
|
}
|
|
];
|
|
|
|
zramSwap.enable = true;
|
|
|
|
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
|
|
}
|