nix-config/modules/hosts/homelab/home01/hardware.nix
Oliver Davies 19edb2b4c0
Some checks are pending
/ check (push) Waiting to run
Add home01 host
2025-11-21 16:20:30 +00:00

50 lines
1.1 KiB
Nix

{
flake.modules.nixos."nixosConfigurations/home01" =
{
config,
lib,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"ahci"
"nvme"
"sd_mod"
"usb_storage"
"usbhid"
"xhci_pci"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/06362cbf-d607-435b-b093-14e3e39462a1";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/5511-BA60";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/585f9f60-9235-4e15-b20b-879115a68260"; }
];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}