From 3fd58180ac10eaffb10bda8ae4bbc7e088668767 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 1 Jan 2025 01:08:18 +0400 Subject: [PATCH] skibity toil --- modules/server/postgresql.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/server/postgresql.nix b/modules/server/postgresql.nix index 487ec7c3..a0c7d35b 100644 --- a/modules/server/postgresql.nix +++ b/modules/server/postgresql.nix @@ -8,7 +8,7 @@ in { services.postgresql = { enable = true; package = pkgs.postgresql_17_jit; - ensureDatabases = [ "forgejo" ]; + ensureDatabases = [ "forgejo" "headscale" ]; ensureUsers = [ { name = "postgres"; @@ -24,6 +24,10 @@ in { name = "forgejo"; ensureDBOwnership = true; } + { + name = "headscale"; + ensureDBOwnership = true; + } ]; # Thank you NotAShelf # https://github.com/NotAShelf/nyx/blob/d407b4d6e5ab7f60350af61a3d73a62a5e9ac660/modules/core/roles/server/system/services/databases/postgresql.nix#L74