Commit 7f4b42fc690f

Vincent Demeester <vincent@sbr.pm>
2026-04-16 12:12:46
flux-generate: fix repo URL (carthage, not github) and guard entries.json
1 parent 289493a
Changed files (1)
modules
flux-generate
modules/flux-generate/default.nix
@@ -21,7 +21,7 @@ in
 
     repoUrl = lib.mkOption {
       type = lib.types.str;
-      default = "git@github.com:vdemeester/www.git";
+      default = "vincent@carthage.vpn:git/public/www.git";
       description = "Git repository URL for the www repo";
     };
 
@@ -65,7 +65,7 @@ in
 
         make deploy
 
-        if ! git diff --quiet flux/entries.json 2>/dev/null; then
+        if [ -f flux/entries.json ] && ! git diff --quiet flux/entries.json 2>/dev/null; then
           git add flux/entries.json
           git commit -m "flux: auto-update entries $(date +%Y-%m-%d)"
           git push origin main:main