Postgres, service init

This commit is contained in:
Julia Lange 2025-04-09 14:06:04 -07:00
parent 8897244111
commit 1c15dedf15
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
'';
};
};
}