From f6567bffb238f506d2dff1488ab3bef072af4642 Mon Sep 17 00:00:00 2001 From: June Date: Sat, 20 Jan 2024 21:34:09 +0100 Subject: [PATCH] Use Forgejo 1.21 from NixOS unstable to make Actions work properly 1.21 has scheduled Actions for example, which we need. --- config/hosts/git/forgejo.nix | 3 ++- flake.nix | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/hosts/git/forgejo.nix b/config/hosts/git/forgejo.nix index a6e6b81..22be46b 100644 --- a/config/hosts/git/forgejo.nix +++ b/config/hosts/git/forgejo.nix @@ -7,11 +7,12 @@ # - https://codeberg.org/forgejo/forgejo/src/branch/forgejo/docs/content/administration/reverse-proxies.en-us.md # - https://forgejo.org/docs/latest/admin/email-setup/ -{ ... }: +{ pkgs-unstable, ... }: { services.forgejo = { enable = true; + package = pkgs-unstable.forgejo; database.type = "postgres"; mailerPasswordFile = "/secrets/forgejo-git-smtp-password.secret"; diff --git a/flake.nix b/flake.nix index 6bc74ee..63ecb99 100644 --- a/flake.nix +++ b/flake.nix @@ -57,6 +57,7 @@ ''; }); }; + pkgs-unstable = nixpkgs-unstable.legacyPackages."x86_64-linux"; in { colmena = { meta = { @@ -65,6 +66,9 @@ audio-hauptraum-kueche = nixpkgs-unstable.legacyPackages."x86_64-linux".extend shairportSync431ExtendedNixpkgsUnstableOverlay; audio-hauptraum-tafel = nixpkgs-unstable.legacyPackages."x86_64-linux".extend shairportSync431ExtendedNixpkgsUnstableOverlay; }; + nodeSpecialArgs = { + git = { inherit pkgs-unstable; }; + }; }; audio-hauptraum-kueche = {