diff --git a/deploy.sh b/deploy.sh index 6f3d692..9f50ae2 100755 --- a/deploy.sh +++ b/deploy.sh @@ -5,6 +5,7 @@ set -ex USERNAME="root" IP="gerd.fricloud.dk" NIXPKGS=$(nix build --impure --json --expr '(import ./shared/sources).nixpkgs' | jq -r '.[].outputs.out') +NIXPKGS=$(nix eval --impure --json --expr '(import ./shared/sources/default.nix).nixpkgs.outPath' | jq -r) export NIX_PATH="nixpkgs=$NIXPKGS" diff --git a/machines/gerd.nix b/machines/gerd.nix index cbc4941..76dbd7c 100644 --- a/machines/gerd.nix +++ b/machines/gerd.nix @@ -55,5 +55,10 @@ }; }; + # TMP FIX FOR https://github.com/nix-community/impermanence/issues/229 + boot.initrd.systemd.suppressedUnits = [ "systemd-machine-id-commit.service" ]; + systemd.suppressedSystemUnits = [ "systemd-machine-id-commit.service" ]; + + system.stateVersion = "24.11"; } diff --git a/machines/gerd/services/forgejo/forgejo.nix b/machines/gerd/services/forgejo/forgejo.nix index eb6e0b8..0134cef 100644 --- a/machines/gerd/services/forgejo/forgejo.nix +++ b/machines/gerd/services/forgejo/forgejo.nix @@ -37,10 +37,6 @@ in { }; }; - # TODO(eyJhb): remove after our ban expires (and nginx config) - # already issued for this exact set of domains in the last 168 hours: git.fricloud.dk, retry after 2024-08-10T01:34:44Z - security.acme.certs."git.fricloud.dk".extraDomainNames = [ "git2.fricloud.dk" ]; - services.nginx.virtualHosts."${svc_domain}" = { forceSSL = true; enableACME = true; diff --git a/machines/gerd/services/forgejo/patches/link-accounts-template.patch b/machines/gerd/services/forgejo/patches/link-accounts-template.patch index 4e56395..252d810 100644 --- a/machines/gerd/services/forgejo/patches/link-accounts-template.patch +++ b/machines/gerd/services/forgejo/patches/link-accounts-template.patch @@ -1,11 +1,26 @@ diff --git a/templates/user/auth/link_account.tmpl b/templates/user/auth/link_account.tmpl -index 8dd49ccd60..8cdce5e1ad 100644 +index e8bb3d409c..aa6d18b97a 100644 --- a/templates/user/auth/link_account.tmpl +++ b/templates/user/auth/link_account.tmpl +@@ -4,12 +4,12 @@ +