Commit d6fed6d3671c

Vincent Demeester <vincent@sbr.pm>
2026-01-20 23:24:54
fix(nix-flake-updater): add Nix cache to writable paths
Nix flake update needs write access to ~/.cache/nix/ for the fetcher cache database. Without it, the service fails with: "unable to open database file (in '~/.cache/nix/fetcher-cache-v4.sqlite')" Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 25fdf57
Changed files (1)
modules
nix-flake-updater
modules/nix-flake-updater/default.nix
@@ -130,6 +130,8 @@ in
           "/var/log/nix-flake-updater"
           # Worktree location (script creates worktrees in ~/tmp)
           "/home/${cfg.user}/tmp"
+          # Nix cache for flake fetcher
+          "/home/${cfg.user}/.cache/nix"
         ];
         NoNewPrivileges = true;