Files
frank-nix/hosts/nero/hardware.nix
T
2026-07-21 13:13:31 -04:00

67 lines
1.3 KiB
Nix

{
config,
lib,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd.availableKernelModules = [
"nvme"
"ahci"
"xhci_pci"
"usbhid"
"usb_storage"
"sd_mod"
];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/7559f03a-28da-482d-934a-5d4f88ab085f";
fsType = "btrfs";
};
"/home" = {
device = "/dev/disk/by-uuid/7559f03a-28da-482d-934a-5d4f88ab085f";
fsType = "btrfs";
options = [ "subvol=home" ];
};
"/nix" = {
device = "/dev/disk/by-uuid/7559f03a-28da-482d-934a-5d4f88ab085f";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/12B3-D345";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
};
swapDevices = [
{ device = "/dev/disk/by-uuid/431e8332-e3d5-400b-93e7-27b9c8dc1dfe"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware = {
bluetooth.enable = true;
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}