about summary refs log tree commit diff stats
path: root/modules/by-name/ol
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-08 16:52:08 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-08 16:52:08 +0100
commit885281a44cbb75edf8fd817df32cd558a30a41bc (patch)
treeb72e56ea38c4459bccd58b118fb221132372b9d8 /modules/by-name/ol
parentfix(modules/ollama): Use workaround to get systemd to agree to impermanence (diff)
downloadnixos-config-885281a44cbb75edf8fd817df32cd558a30a41bc.tar.gz
nixos-config-885281a44cbb75edf8fd817df32cd558a30a41bc.zip
fix(modules/ollama): Also set the correct visibility
Diffstat (limited to 'modules/by-name/ol')
-rw-r--r--modules/by-name/ol/ollama/module.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/by-name/ol/ollama/module.nix b/modules/by-name/ol/ollama/module.nix
index 022770b0..f93c3d98 100644
--- a/modules/by-name/ol/ollama/module.nix
+++ b/modules/by-name/ol/ollama/module.nix
@@ -16,7 +16,10 @@ in {
       # `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"
+      {
+        directory = "/var/lib/private/ollama";
+        mode = "700";
+      }
     ];
 
     services.ollama = {