From d6328117b88307defb72f8a82aca6a7a3800d1e1 Mon Sep 17 00:00:00 2001 From: emily Date: Sat, 9 Nov 2024 20:20:55 +0100 Subject: [PATCH] florp: add about page --- config/services/akkoma/default.nix | 11 ++++------ flake.lock | 29 +++++++++++++++++++++---- flake.nix | 4 ++++ pkgs/update-nixfiles/update-nixfiles.sh | 4 +--- 4 files changed, 34 insertions(+), 14 deletions(-) diff --git a/config/services/akkoma/default.nix b/config/services/akkoma/default.nix index b340fc2..43299cc 100644 --- a/config/services/akkoma/default.nix +++ b/config/services/akkoma/default.nix @@ -26,13 +26,10 @@ extraStatic."static/themes/elly-mod.json" = pkgs.writeText "elly-mod.json" (builtins.readFile ./elly-mod.json); - extraStatic."static/terms-of-service.html" = pkgs.writeText "terms-of-service.html" '' -

Likes are now florps. The timeline goes sideways.

- ''; - - extraStatic."images/sylvia-ritter-15012323.avif" = inputs.florp-branding.packages.${config.nixpkgs.hostPlatform.system}.wallpaper; - - extraStatic."favicon.png" = inputs.florp-branding.packages.${config.nixpkgs.hostPlatform.system}.favicon; + extraStatic."static/terms-of-service.html" = inputs.florp-about.packages.${pkgs.system}.default; + extraStatic."images/sylvia-ritter-15012323.avif" = inputs.florp-branding.packages.${pkgs.system}.wallpaper; + extraStatic."images/florp_banner.avif" = inputs.florp-branding.packages.${pkgs.system}.banner; + extraStatic."favicon.png" = inputs.florp-branding.packages.${pkgs.system}.favicon; frontends = { primary = { diff --git a/flake.lock b/flake.lock index faec4a2..7ff8472 100644 --- a/flake.lock +++ b/flake.lock @@ -430,6 +430,26 @@ "type": "github" } }, + "florp-about": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1731180923, + "narHash": "sha256-DU0gHg/TgpoYBBvpiRIbRGVwLma5xfqxn6gHdIsAqko=", + "ref": "refs/heads/main", + "rev": "35e71f8654bc7df450f24003353fccf45ceb5678", + "revCount": 2, + "type": "git", + "url": "https://woof.rip/florp/about.git" + }, + "original": { + "type": "git", + "url": "https://woof.rip/florp/about.git" + } + }, "florp-branding": { "inputs": { "nixpkgs": [ @@ -437,11 +457,11 @@ ] }, "locked": { - "lastModified": 1730825511, - "narHash": "sha256-Ywc4Y+4VobocyxcVhHlJ5Q5h1fOdsJNlAlWlrkqC8U0=", + "lastModified": 1731182323, + "narHash": "sha256-Ecw7fOxv3hp1iLWBqlYW9TTNi0LTtiu92gtqfdn5v20=", "ref": "refs/heads/main", - "rev": "81bde12357d59215e7d67c7f55c2eb3d54c47689", - "revCount": 2, + "rev": "8aaf8c85b902eaaabfdeadd5502019b2816991b9", + "revCount": 3, "type": "git", "url": "https://woof.rip/florp/branding.git" }, @@ -1016,6 +1036,7 @@ "dns": "dns", "fernglas": "fernglas", "flake-utils": "flake-utils", + "florp-about": "florp-about", "florp-branding": "florp-branding", "home-manager": "home-manager", "hydra": "hydra", diff --git a/flake.nix b/flake.nix index f92ed80..63d1431 100644 --- a/flake.nix +++ b/flake.nix @@ -25,6 +25,10 @@ url = "git+https://woof.rip/florp/branding.git"; inputs.nixpkgs.follows = "nixpkgs"; }; + florp-about = { + url = "git+https://woof.rip/florp/about.git"; + inputs.nixpkgs.follows = "nixpkgs"; + }; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/pkgs/update-nixfiles/update-nixfiles.sh b/pkgs/update-nixfiles/update-nixfiles.sh index 1bec09d..bac780a 100644 --- a/pkgs/update-nixfiles/update-nixfiles.sh +++ b/pkgs/update-nixfiles/update-nixfiles.sh @@ -23,8 +23,6 @@ merge_theirs () { test_build () { local last_error local build_jobs - local start_time - start_time="$(date +%s)" build_jobs="$(curl --fail -s -L -H "Accept: application/json" "${JOBSET_URL}/latest-eval" | jq -r ".builds | .[]")" for build in ${build_jobs}; do @@ -45,7 +43,7 @@ test_build () { done last_error="$(curl --fail -s -L -H "Accept: application/json" "${JOBSET_URL}" | jq -r ".errortime")" - [[ $last_error -gt $start_time ]] && + [[ $last_error -gt $(date +%s) ]] && echo "Evaluation error encountered at $(date +%Y-%m-%d-%H:%M:%S --date="@${last_error}")" && exit 1 }