diff --git a/NixOS.md b/NixOS.md index b8fa4ad..03f1137 100644 --- a/NixOS.md +++ b/NixOS.md @@ -953,9 +953,9 @@ Verification in general: - Encode a video or play a game and watch AMD GPU usage with `radeontop`. - `nix-shell -p radeontop --run radeontop` -Configuration example to disable integrated GUP: See [./hosts/yodaGaming/configuration.nix](./hosts/yodaGaming/configuration.nix) - -Configuration example for an AMD GPU (https://github.com/tolgaerok/nixos-kde/blob/main/core/gpu/amd/default.nix): See [./modules/gpu-amd.nix](./modules/gpu-amd.nix) +NixOS config examples: +- Disable integrated GUP: See [./hosts/yodaGaming/configuration.nix](./hosts/yodaGaming/configuration.nix) +- AMD GPU (https://github.com/tolgaerok/nixos-kde/blob/main/core/gpu/amd/default.nix): See [./modules/gpu-amd.nix](./modules/gpu-amd.nix) ## XDG mimes, desktop files diff --git a/hive.nix b/hive.nix index 9f6861b..af88d16 100644 --- a/hive.nix +++ b/hive.nix @@ -94,18 +94,19 @@ in }; }; -# yodaYoga = { name, nodes, ... }: { -# # Import the per-host configuration file. -# imports = [ ./hosts/${name}/configuration.nix ]; -# -# deployment = { -# # SSH deployment. -# targetHost = "yodayoga.p1st.de"; -# targetPort = 2224; -# -# tags = [ "server" ]; -# }; -# }; + yodaYoga = { name, nodes, ... }: { + # Import the per-host configuration file. + imports = [ ./hosts/${name}/configuration.nix ]; + + deployment = { + # SSH deployment. + #targetHost = "yodayoga.p1st.de"; + targetHost = "192.168.178.44"; + targetPort = 2224; + + #tags = [ "server" ]; + }; + }; yodaHedgehog = { name, nodes, ... }: { # Import the per-host configuration file. diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index a09de12..6c0d21a 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -67,6 +67,7 @@ #../../modules/waydroid.nix ../../modules/uni-vpn.nix #../../modules/epa.nix + ../../modules/ollama.nix ../../modules/games.nix #../../modules/dosbox-x.nix diff --git a/modules/ollama.nix b/modules/ollama.nix new file mode 100644 index 0000000..ca49c96 --- /dev/null +++ b/modules/ollama.nix @@ -0,0 +1,10 @@ +{ pkgs, ...}: +{ + services.ollama = { + enable = true; + loadModels = [ + # https://ollama.com/library/deepseek-r1 + "deepseek-r1:32b" + ]; + }; +} \ No newline at end of file