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