diff --git a/home.nix b/home.nix index 8f15f20..4678e5c 100644 --- a/home.nix +++ b/home.nix @@ -455,7 +455,7 @@ in { command = '' jj log -r@ -n1 --ignore-working-copy --no-graph --stat | tail -n1 | ${pkgs.sd}/bin/sd "(\d+) files? changed, (\d+) insertions?\(\+\), (\d+) deletions?\(-\)" ' ''${1}m ''${2}+ ''${3}-' | ${pkgs.sd}/bin/sd " 0." "" ''; - when = "jj root"; + when = "jj root --ignore-working-copy"; }; git_state.disabled = true; git_commit.disabled = true; diff --git a/void.nix b/void.nix index 3d96578..4954a30 100644 --- a/void.nix +++ b/void.nix @@ -312,6 +312,12 @@ settings.Upload.URL = "http://localhost:9428/insert/journald"; }; + services.gerrit = { + enable = true; + listenAddress = "[::]:8923"; + serverId = "b1ea4fd2-4e4a-4063-aa3c-5139a90c58b0"; + }; + networking.firewall.allowedTCPPorts = [ 80 443 @@ -380,6 +386,11 @@ enableACME = true; addSSL = true; }; + "gerrit.005540.xyz" = { + locations."/".proxyPass = "http://localhost:8923"; + enableACME = true; + addSSL = true; + }; }; }; }