From d2d37440b5742bf0b4878ba6de2de1ed4abfc18a Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 30 Dec 2024 08:27:28 +0100 Subject: refactor: move postgresql config under shared/ --- nixos/shared/postgresql.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nixos/shared/postgresql.nix (limited to 'nixos/shared/postgresql.nix') diff --git a/nixos/shared/postgresql.nix b/nixos/shared/postgresql.nix new file mode 100644 index 0000000..6d9bb40 --- /dev/null +++ b/nixos/shared/postgresql.nix @@ -0,0 +1,13 @@ +{ config, lib, pkgs, ... }: + +{ + config = { + services.postgresql = { + enable = true; + authentication = pkgs.lib.mkOverride 10 '' + #type database DBuser auth-method + local sameuser all peer + ''; + }; + }; +} -- cgit v1.2.3