add ollama

This commit is contained in:
Daniel Langbein 2025-02-02 11:18:56 +01:00
parent cf54928bdf
commit 5cdfccdc41
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
4 changed files with 27 additions and 15 deletions

View File

@ -953,9 +953,9 @@ Verification in general:
- Encode a video or play a game and watch AMD GPU usage with `radeontop`. - Encode a video or play a game and watch AMD GPU usage with `radeontop`.
- `nix-shell -p radeontop --run radeontop` - `nix-shell -p radeontop --run radeontop`
Configuration example to disable integrated GUP: See [./hosts/yodaGaming/configuration.nix](./hosts/yodaGaming/configuration.nix) NixOS config examples:
- 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) - 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 ## XDG mimes, desktop files

View File

@ -94,18 +94,19 @@ in
}; };
}; };
# yodaYoga = { name, nodes, ... }: { yodaYoga = { name, nodes, ... }: {
# # Import the per-host configuration file. # Import the per-host configuration file.
# imports = [ ./hosts/${name}/configuration.nix ]; imports = [ ./hosts/${name}/configuration.nix ];
#
# deployment = { deployment = {
# # SSH deployment. # SSH deployment.
# targetHost = "yodayoga.p1st.de"; #targetHost = "yodayoga.p1st.de";
# targetPort = 2224; targetHost = "192.168.178.44";
# targetPort = 2224;
# tags = [ "server" ];
# }; #tags = [ "server" ];
# }; };
};
yodaHedgehog = { name, nodes, ... }: { yodaHedgehog = { name, nodes, ... }: {
# Import the per-host configuration file. # Import the per-host configuration file.

View File

@ -67,6 +67,7 @@
#../../modules/waydroid.nix #../../modules/waydroid.nix
../../modules/uni-vpn.nix ../../modules/uni-vpn.nix
#../../modules/epa.nix #../../modules/epa.nix
../../modules/ollama.nix
../../modules/games.nix ../../modules/games.nix
#../../modules/dosbox-x.nix #../../modules/dosbox-x.nix

10
modules/ollama.nix Normal file
View File

@ -0,0 +1,10 @@
{ pkgs, ...}:
{
services.ollama = {
enable = true;
loadModels = [
# https://ollama.com/library/deepseek-r1
"deepseek-r1:32b"
];
};
}