Postgres, service init

This commit is contained in:
Julia Lange 2025-04-09 14:06:04 -07:00
parent b5eea3d798
commit 8cd1945b3b
Signed by: Julia
SSH key fingerprint: SHA256:50XUMcOFYPUs9/1j7p9SPnwASZ7QnxXm7THF7HkbqzQ
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
{
options.postgres = {
enable = lib.mkEnableOption "";
};
config = lib.mkIf config.postgres.enable {
services.postgresql = {
enable = true;
package = pkgs.postgresql_17;
authentication = ''
#type database DBuser auth-method
local all all trust
'';
};
};
}