nixos/modules/hosts/crow/hardware.nix

31 lines
969 B
Nix
Raw Permalink Normal View History

2026-04-26 16:09:24 +00:00
{ self, inputs, ... }: {
flake.nixosModules.crowHardware = { config, lib, pkgs, modulesPath, ... }: {
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2026-06-09 11:23:51 -04:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
2026-04-26 16:09:24 +00:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2026-06-09 11:23:51 -04:00
{ device = "/dev/disk/by-uuid/612d2419-8b0c-40dd-89d3-5bde0c2daaac";
2026-04-26 16:09:24 +00:00
fsType = "ext4";
};
fileSystems."/boot" =
2026-06-09 11:23:51 -04:00
{ device = "/dev/disk/by-uuid/C6A2-0230";
2026-04-26 16:09:24 +00:00
fsType = "vfat";
2026-06-09 11:23:51 -04:00
options = [ "fmask=0077" "dmask=0077" ];
2026-04-26 16:09:24 +00:00
};
swapDevices =
2026-06-09 11:23:51 -04:00
[ { device = "/dev/disk/by-uuid/9ac86a08-f161-4208-9348-66f6493881bf"; }
2026-04-26 16:09:24 +00:00
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}