nix-config/modules/hosts/homelab/home02/hardware.nix
Oliver Davies 49729903cd
Some checks are pending
/ check (push) Waiting to run
Add home02
2025-11-19 18:09:59 +00:00

50 lines
1.1 KiB
Nix

{
flake.modules.nixos."nixosConfigurations/home02" =
{
config,
lib,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/68c1355f-83d5-4db0-8e84-1ad251c17a67";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/8FA9-8A4F";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/b7100541-175a-4e09-8c7e-97bce11015d1"; }
];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}