flake

Francesco Saccone's Nix flake.
git clone git://git.francescosaccone.com/flake
Log | Files | Refs | README | LICENSE

commit 77f3999e65d4313be0895ef27033b2c142c721f5
parent c82d42ee3bb6e9eb043b1f23e1d187ea02b4d19c
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Tue, 25 Mar 2025 19:34:11 +0100

fix: generate stagit in /var/tmp

Nobody wants to lose all the stagit generated files after each
reboot.

Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>

Diffstat:
Mhosts/server/default.nix | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hosts/server/default.nix b/hosts/server/default.nix @@ -95,7 +95,7 @@ rec { "index.html" = "/var/site/html/index.html"; "blog" = "/var/site/html/blog"; "code" = "/var/site/html/code"; - "git" = "/tmp/stagit"; + "git" = "/var/tmp/stagit"; "public" = "${inputs.site}/public"; "favicon.ico" = "${inputs.site}/favicon.ico"; "robots.txt" = "${inputs.site}/robots.txt"; @@ -150,7 +150,7 @@ rec { }; hooks.postReceive = let - destDir = "/tmp/stagit"; + destDir = "/var/tmp/stagit"; cacheFile = "${destDir}/.htmlcache"; reposDir = config.modules.git.directory; flags = builtins.concatStringsSep " " [