2023-12-20 04:00:02 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
|
|
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
|
|
|
|
2023-12-30 00:06:27 -05:00
|
|
|
services.logind = {
|
|
|
|
lidSwitchDocked = "ignore";
|
|
|
|
lidSwitchExternalPower = "ignore";
|
|
|
|
};
|
2023-12-20 04:00:02 -05:00
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
timeout = 2;
|
|
|
|
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "/dev/sda";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
initrd.availableKernelModules = [
|
|
|
|
"uhci_hcd"
|
|
|
|
"ehci_pci"
|
|
|
|
"ahci"
|
|
|
|
"usbhid"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-label/NIXROOT";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-label/NIXBOOT";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-01-14 19:28:57 -05:00
|
|
|
swapDevices = [
|
|
|
|
{
|
|
|
|
device = "/var/lib/swapfile";
|
|
|
|
size = 16 * 1024;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2023-12-20 04:00:02 -05:00
|
|
|
zramSwap.enable = true;
|
|
|
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|