From 8750b39ad3f03f5de91c3d23afa154ce6a73c4c8 Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Fri, 2 Aug 2024 16:40:17 +0200 Subject: [PATCH] hostconfig/gandalf: Add a developpement postgres instance --- hostconfig/gandalf/nixos.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hostconfig/gandalf/nixos.nix b/hostconfig/gandalf/nixos.nix index b677df1..7835564 100644 --- a/hostconfig/gandalf/nixos.nix +++ b/hostconfig/gandalf/nixos.nix @@ -71,5 +71,18 @@ ]; }; + services.postgresql = { + enable = true; + ensureUsers = [ + { + name = "traxys"; + ensureClauses = { + superuser = true; + createdb = true; + }; + } + ]; + }; + system.stateVersion = "24.05"; }