nix-dotfiles/nixosModules/services/postgresql/service.nix

19 lines
358 B
Nix
Raw Normal View History

2025-04-09 14:06:04 -07:00
{ 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
'';
};
};
}