nixos-configs/devices/oksys/hardware-configuration.nix
matt1432 4da8a529e0
All checks were successful
Discord / discord commits (push) Successful in 1m15s
chore(oksys): add more lidswitch settings
2023-12-22 16:20:26 -05:00

47 lines
841 B
Nix

{
config,
modulesPath,
...
}: {
nixpkgs.hostPlatform = "x86_64-linux";
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
services.logind.lidSwitchExternalPower = "ignore";
services.logind.lidSwitchDocked = "ignore";
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";
};
};
zramSwap.enable = true;
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
}