diff options
| author | Christian <[email protected]> | 2026-04-08 13:10:24 -0500 |
|---|---|---|
| committer | Christian <[email protected]> | 2026-04-08 13:10:24 -0500 |
| commit | aa8289ae28d17869297b8046ed8efd04a5e1016c (patch) | |
| tree | 3d9f1186634d4de1f3cb68a8600f33151d994ef7 /hosts/desktop/hardware-configuration.nix | |
| parent | e1fcf4fac685b91ed7272479c0e9e670687deb92 (diff) | |
Local LLM Time
Diffstat (limited to 'hosts/desktop/hardware-configuration.nix')
| -rw-r--r-- | hosts/desktop/hardware-configuration.nix | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix index 7ddea07..ba7f356 100644 --- a/hosts/desktop/hardware-configuration.nix +++ b/hosts/desktop/hardware-configuration.nix @@ -9,10 +9,19 @@ ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; + hardware.graphics = { + enable = true; + extraPackages = with pkgs; [ + rocmPackages.clr + rocmPackages.hipblas + rocmPackages.clr.icd + ]; + }; + fileSystems."/" = { device = "/dev/disk/by-uuid/e09483ea-5fb4-472d-99ba-3d4dc9560400"; fsType = "btrfs"; @@ -24,7 +33,17 @@ options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = [ ]; + zramSwap = { + enable = true; + algorithm = "zstd"; + memoryPercent = 50; + priority = 100; + }; + + swapDevices = [ { + device = "/swap/swapfile"; + size = 32 * 1024; + } ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; |
