nix/hosts/pickwick/hardware.nix
2025-04-05 16:34:08 -05:00

40 lines
802 B
Nix

{
config,
lib,
pkgs,
modulesPath,
inputs,
...
}:
{
boot.loader.systemd-boot.enable = true;
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
./disko.nix
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
swapDevices = [
{
device = "/dev/disk/by-label/SWAP";
}
];
zramSwap.enable = true;
}