flake

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

commit 498b717300ec37c4770e738a71e14a7378d03e4d
parent 9e521741fa8e34a1f231d0598e502186f49fcabc
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Wed, 16 Apr 2025 18:47:01 +0200

fix: copy, instead of symlinking, generated files for the web

It seems Quark has no support for symlinks at all, it does not
follow them and returns a 403 error when requesting them.

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

Diffstat:
Mhosts/git-server/scripts.nix | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/hosts/git-server/scripts.nix b/hosts/git-server/scripts.nix @@ -12,16 +12,16 @@ let ${pkgs.stagit}/bin/stagit-index ${reposDir}/*/ > ${destDir}/index.html - # Symlink favicon.png, logo.png and stagit.css from site - ${pkgs.sbase}/bin/ln -sf \ + # Copy favicon.png, logo.png and stagit.css from site + ${pkgs.sbase}/bin/cp \ ${inputs.site}/public/icon/256.png \ ${destDir}/favicon.png - ${pkgs.sbase}/bin/ln -sf \ + ${pkgs.sbase}/bin/cp \ ${inputs.site}/public/icon/32.png \ ${destDir}/logo.png - ${pkgs.sbase}/bin/ln -sf \ + ${pkgs.sbase}/bin/cp \ ${inputs.site}/public/stagit.css \ ${destDir}/style.css @@ -43,22 +43,22 @@ let -u ${httpBaseUrl}/${name}/ \ ${reposDir}/${name} - # Make the log.html file the index page - ${pkgs.sbase}/bin/ln -sf \ + # Make the log.html file the index page as well + ${pkgs.sbase}/bin/cp \ ${destDir}/${name}/log.html \ ${destDir}/${name}/index.html # Symlink favicon.png, logo.png and style.css in repos from # index - ${pkgs.sbase}/bin/ln -sf \ + ${pkgs.sbase}/bin/cp \ ${destDir}/favicon.png \ ${destDir}/${name}/favicon.png - ${pkgs.sbase}/bin/ln -sf \ + ${pkgs.sbase}/bin/cp \ ${destDir}/logo.png \ ${destDir}/${name}/logo.png - ${pkgs.sbase}/bin/ln -sf \ + ${pkgs.sbase}/bin/cp \ ${destDir}/style.css \ ${destDir}/${name}/style.css