ollama
This commit is contained in:
parent
e326eef6f4
commit
6bd365f84e
5 changed files with 9 additions and 15 deletions
|
|
@ -4,10 +4,7 @@
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
config.gaming.enable = true;
|
config.gaming.enable = true;
|
||||||
|
|
||||||
config.containers = {
|
config.ollama.enable = true;
|
||||||
enable = true;
|
|
||||||
ollama.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
config.hyprlandOverrides = {
|
config.hyprlandOverrides = {
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{ config, lib, ...}: {
|
|
||||||
config = lib.mkIf config.containers.enable {
|
|
||||||
virtualization.oci-containers.containers.ollama = lib.mkIf config.containers.ollama.enable {
|
|
||||||
image = "ollama/ollama@sha256:4325d935cd6e07cfa840eb193aad0594ba6cbc97ca9d0778f6716507cb3955ed";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -18,6 +18,5 @@
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
./wayland.nix
|
./wayland.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
./containers
|
] ++ (lib.optional config.ollama.enable ./ollama.nix);
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
6
system/ollama.nix
Normal file
6
system/ollama.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{...}: {
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
acceleration = "rocm";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
options.gaming.enable = lib.mkEnableOption "Enable gaming";
|
options.gaming.enable = lib.mkEnableOption "Enable gaming";
|
||||||
|
|
||||||
options.containers.enable = lib.mkEnableOption "Enable podman";
|
options.ollama.enable = lib.mkEnableOption "Install Ollama for local LLMs";
|
||||||
options.containers.ollama.enable = lib.mkEnableOption "Run Ollama container";
|
|
||||||
|
|
||||||
options.hyprlandOverrides = lib.mkOption {
|
options.hyprlandOverrides = lib.mkOption {
|
||||||
# type = lib.types.attributeSet;
|
# type = lib.types.attributeSet;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue