diff --git a/miku/hardware-configuration.nix b/miku/hardware-configuration.nix index 0d8c15a..dfe62d8 100644 --- a/miku/hardware-configuration.nix +++ b/miku/hardware-configuration.nix @@ -6,13 +6,17 @@ { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + # basic drivers boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ "amdgpu" ]; - boot.kernelModules = [ "kvm-amd" ]; - # AMD microcode updates please + # AMD CPU + boot.kernelModules = [ "kvm-amd" ]; hardware.cpu.amd.updateMicrocode = true; + # AMD graphics + boot.initrd.kernelModules = [ "amdgpu" ]; + services.ollama.acceleration = "rocm"; + # /boot efi partition to boot in UEFI mode fileSystems."/boot" = { device = "/dev/disk/by-id/nvme-KINGSTON_SFYRD4000G_50026B7686EC5F33-part1"; diff --git a/mini/hardware-configuration.nix b/mini/hardware-configuration.nix index e7fe52d..cfa0a9b 100644 --- a/mini/hardware-configuration.nix +++ b/mini/hardware-configuration.nix @@ -6,13 +6,17 @@ { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + # basic drivers boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ "amdgpu" ]; - boot.kernelModules = [ "kvm-amd" ]; - # AMD microcode updates please + # AMD CPU + boot.kernelModules = [ "kvm-amd" ]; hardware.cpu.amd.updateMicrocode = true; + # AMD graphics + boot.initrd.kernelModules = [ "amdgpu" ]; + services.ollama.acceleration = "rocm"; + # /boot efi partition to boot in UEFI mode fileSystems."/boot" = { device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part1"; diff --git a/neko/hardware-configuration.nix b/neko/hardware-configuration.nix index 3bc0dff..9a85abb 100644 --- a/neko/hardware-configuration.nix +++ b/neko/hardware-configuration.nix @@ -6,13 +6,16 @@ { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + # basic drivers boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ "i915" ]; - boot.kernelModules = [ "kvm-intel" ]; - # Intel microcode updates please + # Intel CPU + boot.kernelModules = [ "kvm-intel" ]; hardware.cpu.intel.updateMicrocode = true; + # Intel graphics + boot.initrd.kernelModules = [ "i915" ]; + # /boot efi partition to boot in UEFI mode fileSystems."/boot" = { device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part1"; diff --git a/share/common.nix b/share/common.nix index 350f66b..02a7d03 100644 --- a/share/common.nix +++ b/share/common.nix @@ -627,4 +627,9 @@ in # wheel users can use sandbox stuff without password { groups = [ "wheel" ]; runAs = "sandbox-kde"; noPass = true; } ]; + + # try local AI stuff + services.ollama = { + enable = true; + }; }