diff --git a/flake.nix b/flake.nix --- a/flake.nix +++ b/flake.nix @@ -191,8 +191,10 @@ ]; shellHook = '' mkdir -p appview/pages/static + # temporary self-heal for workspaces that copied static assets as read-only + [ -d appview/pages/static/icons ] && [ ! -w appview/pages/static/icons ] && chmod -R u+rwX appview/pages/static # no preserve is needed because watch-tailwind will want to be able to overwrite - cp -fr --no-preserve=ownership ${packages'.appview-static-files}/* appview/pages/static + cp -fr --no-preserve=ownership,mode ${packages'.appview-static-files}/* appview/pages/static export TANGLED_OAUTH_CLIENT_KID="$(date +%s)" export TANGLED_OAUTH_CLIENT_SECRET="$(${packages'.goat}/bin/goat key generate -t P-256 | grep -A1 "Secret Key" | tail -n1 | awk '{print $1}')" ''; @@ -224,7 +226,7 @@ program = toString (pkgs.writeShellScript "watch-appview" '' echo "copying static files to appview/pages/static..." mkdir -p appview/pages/static - ${pkgs.coreutils}/bin/cp -fr --no-preserve=ownership ${packages'.appview-static-files}/* appview/pages/static + ${pkgs.coreutils}/bin/cp -fr --no-preserve=ownership,mode ${packages'.appview-static-files}/* appview/pages/static ${air-watcher "appview" ""}/bin/run ''); };