diff --git a/hosts/yodaHedgehog/host-specific.nix b/hosts/yodaHedgehog/host-specific.nix index a86e085..7f6e889 100644 --- a/hosts/yodaHedgehog/host-specific.nix +++ b/hosts/yodaHedgehog/host-specific.nix @@ -127,6 +127,16 @@ in sleep 60s done + # Wait until no nix garbage collection service is running. + while :; do + running_services="$(systemctl list-units --type=service --plain --quiet | awk '{ print $1 }')" + if ! printf '%s' "''${running_services}" | grep '^nix-gc.service$'; then + break; + fi + printf '%s\n' 'Delaying suspend due to running nix garbage collection service.' + sleep 60s + done + # Send filtered journal by email. systemctl start journalwatch.service ||: # Send notification by email. diff --git a/modules/local-llm.nix b/modules/local-llm.nix index 6f3d388..ee7c63a 100644 --- a/modules/local-llm.nix +++ b/modules/local-llm.nix @@ -12,6 +12,7 @@ in # # https://ollama.com/library/deepseek-r1 # "deepseek-r1:32b" # "deepseek-r1:14b" + # "deepseek-r1:7b" #]; }; @@ -36,7 +37,18 @@ in # # https://docs.openwebui.com/getting-started/quick-start # Admin Creation: The first account created on Open WebUI gains Administrator privileges, controlling user management and system settings. -# services.open-webui.enable = true; + # + #services.open-webui = { + #enable = true; + #package = pkgs.unstable.open-webui; # TODO back to stable nixpkgs + #port = 8080; + + # Share via LAN + # + # Temporarily open firewall + # sudo nixos-firewall-tool open tcp 8080 && ip addr | grep 192 + #host = "0.0.0.0"; # Also listen to connections from other hosts + #}; # Web-UI # services.nextjs-ollama-llm-ui = {