diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-07 15:53:47 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-07 15:53:47 +0100 |
commit | 0f80da3bde07fcd19daefbb88f1a66fbdf90258a (patch) | |
tree | 42e8e20d6f93d542a0f3ad5ba1cb10399a145940 /modules/by-name/ol/ollama/module.nix | |
parent | build(treewide): Update (diff) | |
download | nixos-config-0f80da3bde07fcd19daefbb88f1a66fbdf90258a.tar.gz nixos-config-0f80da3bde07fcd19daefbb88f1a66fbdf90258a.zip |
feat(modules/ollama): Init
Diffstat (limited to 'modules/by-name/ol/ollama/module.nix')
-rw-r--r-- | modules/by-name/ol/ollama/module.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/by-name/ol/ollama/module.nix b/modules/by-name/ol/ollama/module.nix new file mode 100644 index 00000000..418a1851 --- /dev/null +++ b/modules/by-name/ol/ollama/module.nix @@ -0,0 +1,22 @@ +{ + config, + lib, + ... +}: let + cfg = config.soispha.services.ollama; +in { + options.soispha.services.ollama = { + enable = lib.mkEnableOption "ollama"; + }; + + config = lib.mkIf cfg.enable { + soispha.impermanence.directories = [ + config.services.ollama.home + ]; + + services.ollama = { + enable = true; + # acceleration = "rocm"; + }; + }; +} |