From 6a5f28a56139bd61f48dc044c9ae7e944c2bf502 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 16 May 2025 12:46:56 -0500 Subject: [PATCH 1/4] Attempt to enable ssh-agent, seems non-functional for now. --- users/root.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/users/root.nix b/users/root.nix index bf78610..920c822 100644 --- a/users/root.nix +++ b/users/root.nix @@ -19,5 +19,6 @@ }; stateVersion = "24.11"; }; + services.ssh-agent.enable = true; }; } From 269e691ae1eb07fcfe9429e8948c79e4f72c167f Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 16 May 2025 12:47:48 -0500 Subject: [PATCH 2/4] Use config from GTS docs. --- hosts/hub/apps/gts.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/hub/apps/gts.nix b/hosts/hub/apps/gts.nix index 713b1cb..2ef953a 100644 --- a/hosts/hub/apps/gts.nix +++ b/hosts/hub/apps/gts.nix @@ -17,7 +17,9 @@ in }; caddy.virtualHosts."gts.thewordnerd.info".extraConfig = '' - reverse_proxy http://localhost:8081 + reverse_proxy http://localhost:8081 { + flush_interval -1 + } ''; }; environment.systemPackages = [ package ]; From 4e562a9364ec4e32583e968642ac5b3689cb5f7a Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 16 May 2025 12:49:12 -0500 Subject: [PATCH 3/4] Add some Libresign dependencies. --- hosts/hub/apps/nextcloud.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/hub/apps/nextcloud.nix b/hosts/hub/apps/nextcloud.nix index fd45046..97371d5 100644 --- a/hosts/hub/apps/nextcloud.nix +++ b/hosts/hub/apps/nextcloud.nix @@ -61,12 +61,14 @@ }; virtualisation.docker.enable = true; users.users.nextcloud.extraGroups = [ "docker" ]; - environment.systemPackages = [ + environment.systemPackages = with pkgs; [ + poppler_utils (pkgs.writeScriptBin "occ" '' #!${pkgs.bash}/bin/bash exec nextcloud-occ "$@" '') ]; + programs.java.binfmt = true; system.stateVersion = "24.11"; }; # https://discourse.nixos.org/t/podman-docker-in-nixos-container-ideally-in-unprivileged-one/22909/12 From 5ddd72406752fc0d105db46fd73f751dd9729b9f Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 16 May 2025 12:49:53 -0500 Subject: [PATCH 4/4] Redirect webfinger URIs from thewordnerd.info to GTS. --- hosts/hub/default.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/hosts/hub/default.nix b/hosts/hub/default.nix index 693c548..204be3a 100644 --- a/hosts/hub/default.nix +++ b/hosts/hub/default.nix @@ -126,8 +126,25 @@ 443 ]; - services.caddy.virtualHosts."thewordnerd.info".extraConfig = - ''redir https://www.thewordnerd.info{uri}''; + services.caddy.virtualHosts."thewordnerd.info".extraConfig = '' + @webfinger { + path /.well-known/webfinger + # query acct=nolan%3Athewordnerd%40info + } + handle @webfinger { + rewrite * /.well-known/webfinger?resource=acct%3Anolan%40gts.thewordnerd.info + reverse_proxy localhost:8081 + } + handle /.well-known/nodeinfo { + reverse_proxy localhost:8081 + } + handle /.well-known/host-meta { + reverse_proxy localhost:8081 + } + handle { + redir https://www.thewordnerd.info{uri} + } + ''; services.caddy.virtualHosts."www.thewordnerd.info".extraConfig = '' file_server