mirror of
https://codeberg.org/privacy1st/nix-git
synced 2025-02-11 08:50:59 +01:00
add ollama
This commit is contained in:
parent
cf54928bdf
commit
5cdfccdc41
6
NixOS.md
6
NixOS.md
@ -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
|
||||||
|
|
||||||
|
25
hive.nix
25
hive.nix
@ -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.
|
||||||
|
@ -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
10
modules/ollama.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ pkgs, ...}:
|
||||||
|
{
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
loadModels = [
|
||||||
|
# https://ollama.com/library/deepseek-r1
|
||||||
|
"deepseek-r1:32b"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user