summaryrefslogtreecommitdiff
path: root/modules/postgres.nix
diff options
context:
space:
mode:
authorKj Tsanaktsidis <kjtsanaktsidis@groq.com>2026-01-10 22:22:05 +1100
committerKj Tsanaktsidis <kjtsanaktsidis@groq.com>2026-01-10 22:22:05 +1100
commite691e6b4b080ed70c2a778b8d0ddb43031cf9521 (patch)
tree03bb8fd6de33be3ae10cf3a72b356c51255eed04 /modules/postgres.nix
parenteca9d37810d5c29a1b0ea7f86c6b3abbb81f7c04 (diff)
keycloak
Diffstat (limited to 'modules/postgres.nix')
-rw-r--r--modules/postgres.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/postgres.nix b/modules/postgres.nix
new file mode 100644
index 0000000..8853aaa
--- /dev/null
+++ b/modules/postgres.nix
@@ -0,0 +1,13 @@
+{
+ lib,
+ ...
+}:
+{
+ services.postgresql = {
+ enable = true;
+ authentication = lib.mkBefore ''
+ #type database DBuser auth-method
+ local all postgres peer
+ '';
+ };
+}