This commit is contained in:
2025-07-31 12:16:30 +03:00
parent 83e7d98aa8
commit 93ef99b14b
2 changed files with 20 additions and 14 deletions
+4 -6
View File
@@ -16,7 +16,6 @@
"/dev/dri/renderD128" "/dev/dri/renderD128"
]; ];
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
@@ -31,7 +30,10 @@
"usbhid" "usbhid"
"sd_mod" "sd_mod"
]; ];
kernelModules = [ "kvm-amd" "amdgpu" ]; kernelModules = [
"kvm-amd"
"amdgpu"
];
extraModulePackages = [ ]; extraModulePackages = [ ];
}; };
@@ -42,10 +44,6 @@
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
]; ];
#
# environment.systemPackages = with pkgs; [
# clinfo
# ];
fileSystems = { fileSystems = {
"/" = { "/" = {
+15 -7
View File
@@ -10,21 +10,29 @@
nextjs-ollama-llm-ui.enable = true; nextjs-ollama-llm-ui.enable = true;
ollama = { ollama = {
enable = true; enable = true;
package = pkgs.ollama; package = pkgs.ollama-rocm;
environmentVariables = {
HCC_AMDGPU_TARGET = "gfx1150"; # used to be necessary, but doesn't seem to anymore
};
user = "ollama"; # "${inputs.zeroq.devices.admin}"; user = "ollama"; # "${inputs.zeroq.devices.admin}";
group = "ollama"; group = "ollama";
# home = "/home/${inputs.zeroq.devices.admin}/.ollama"; # home = "/home/${inputs.zeroq.devices.admin}/.ollama";
# models = "${inputs.zeroq.dirs.vetymae-drive}/AI/Ollama/models"; # models = "${inputs.zeroq.dirs.vetymae-drive}/AI/Ollama/models";
acceleration = "rocm"; acceleration = "rocm";
#rocmOverrideGfx = "11.5.0"; rocmOverrideGfx = "11.5.0";
}; };
}; };
users = { services.open-webui.enable = true;
ollama = {
ollama.isSystemUser = true; nixpkgs.config.permittedInsecurePackages = [
}; "libsoup-2.74.3"
}; ];
# users = {
# ollama = {
# ollama.isSystemUser = true;
# };
# };
environment.systemPackages = with pkgs; [ lmstudio ]; environment.systemPackages = with pkgs; [ lmstudio ];
} }