diff options
author | Martin Fischer <martin@push-f.com> | 2024-12-30 08:27:28 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2024-12-30 08:28:28 +0100 |
commit | d2d37440b5742bf0b4878ba6de2de1ed4abfc18a (patch) | |
tree | 0accad0cd6c40e473b954d3c294a72863294d7b5 /nixos/shared/postgresql.nix | |
parent | 20558ccfbc5041128834af04e3bf0c44c637ce99 (diff) |
refactor: move postgresql config under shared/
Diffstat (limited to 'nixos/shared/postgresql.nix')
-rw-r--r-- | nixos/shared/postgresql.nix | 13 |
1 files changed, 13 insertions, 0 deletions
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 + ''; + }; + }; +} |