diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-08 16:39:31 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-08 16:48:47 +0100 |
commit | 2a249a3e684d96f57cf58402ffdecd424c114322 (patch) | |
tree | 9645b9ee707853516d1818db8c654740fdfc9b6b /modules/by-name/ol | |
parent | refactor(modules/font): Use new `nerd-fonts` attr set (diff) | |
download | nixos-config-2a249a3e684d96f57cf58402ffdecd424c114322.tar.gz nixos-config-2a249a3e684d96f57cf58402ffdecd424c114322.zip |
fix(modules/ollama): Use workaround to get systemd to agree to impermanence
Diffstat (limited to 'modules/by-name/ol')
-rw-r--r-- | modules/by-name/ol/ollama/module.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/by-name/ol/ollama/module.nix b/modules/by-name/ol/ollama/module.nix index 418a1851..022770b0 100644 --- a/modules/by-name/ol/ollama/module.nix +++ b/modules/by-name/ol/ollama/module.nix @@ -11,7 +11,12 @@ in { config = lib.mkIf cfg.enable { soispha.impermanence.directories = [ - config.services.ollama.home + # Ollama's systemd services tries to do create the directory under + # `/var/lib/private/ollama` and then symlink `/var/lib/ollama` to that, when + # `DynamicUsers` is true. Thus we need to persist the private directory and not the + # resulting symlink one. + # Relevant issue: https://github.com/nix-community/impermanence/issues/93 + "/var/lib/private/ollama" ]; services.ollama = { |