From 14d3e6b1ee19d3c7ae6f130f916126f211665dd1 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sun, 2 Nov 2025 00:16:49 -0600 Subject: [PATCH] action runner & webref stuff --- hosts/workstation/configuration.nix | 17 +++++++++++++++++ modules/nix/gitea-actions-runners/webref.nix | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/hosts/workstation/configuration.nix b/hosts/workstation/configuration.nix index 765c823..e6bb934 100644 --- a/hosts/workstation/configuration.nix +++ b/hosts/workstation/configuration.nix @@ -151,5 +151,22 @@ in acceleration = "cuda"; models = "/srv/ai/ollama"; }; + postgresql = { + enable = true; + package = pkgs.postgresql_17; + enableTCPIP = true; + authentication = pkgs.lib.mkOverride 10 '' + local all all trust + host all all ${config.my.localhost}/32 trust + host all all ::1/128 trust + ''; + ensureDatabases = [ "webref" ]; + ensureUsers = [ + { + name = "webref"; + ensureDBOwnership = true; + } + ]; + }; }; } diff --git a/modules/nix/gitea-actions-runners/webref.nix b/modules/nix/gitea-actions-runners/webref.nix index e5c0709..cacf97f 100644 --- a/modules/nix/gitea-actions-runners/webref.nix +++ b/modules/nix/gitea-actions-runners/webref.nix @@ -41,8 +41,8 @@ in nodejs python3 postgresql - docker - docker-compose + podman + podman-compose attic-client ; };