Serenity/modules/hosts/hades/hardware.nix
2026-08-31 15:44:04 +10:00

54 lines
1.1 KiB
Nix

{ ... }:
{
# defines a module
flake.nixosModules.hades-hardware =
{
config,
lib,
modulesPath,
...
}:
{
# important i think lol
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
# shrug
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
# enable amdgpu at boot
boot.initrd.kernelModules = [ "amdgpu" ];
# root partition
fileSystems."/" = {
device = "/dev/disk/by-uuid/2f4a231c-04a1-4bb9-9370-c207573be881";
fsType = "ext4";
};
# boot partition
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/7D2E-5F33";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
# swap
swapDevices = [ ];
# specifies x64 uArch
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}