From 8ecb4d39621fe43bc8ecdb7573ea45297348d2c2 Mon Sep 17 00:00:00 2001 From: Random936 Date: Sat, 25 Apr 2026 18:18:00 -0400 Subject: [PATCH] Updated AI host to use 2 HDDs --- config/ai.nix | 3 +++ hardware/ai.nix | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/config/ai.nix b/config/ai.nix index d4c45e5..9cd2f7a 100644 --- a/config/ai.nix +++ b/config/ai.nix @@ -43,6 +43,8 @@ ]; }; openFirewall = true; + # Make sure this path is created and has the permissions of ollama:ollama. + models = "/mnt/storage/models"; environmentVariables = { OLLAMA_CONTEXT_LENGTH = "8192"; }; @@ -81,6 +83,7 @@ # System Packeges Related to AI environment.systemPackages = with pkgs; [ opencode + openclaw claude-code ]; } diff --git a/hardware/ai.nix b/hardware/ai.nix index e3fe5a2..cd4cac2 100644 --- a/hardware/ai.nix +++ b/hardware/ai.nix @@ -24,6 +24,12 @@ options = [ "fmask=0022" "dmask=0022" ]; }; + # The label "storage" can be set using e2label. + fileSystems."/mnt/storage" = { + device = "/dev/disk/by-label/storage"; + fsType = "ext4"; + }; + swapDevices = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking