14 lines
240 B
Nix
14 lines
240 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
services = {
|
||
|
postgresql = {
|
||
|
ensureDatabases = [ "hass" ];
|
||
|
ensureUsers = [{
|
||
|
name = "hass";
|
||
|
ensurePermissions = { "DATABASE hass" = "ALL PRIVILEGES"; };
|
||
|
}];
|
||
|
};
|
||
|
};
|
||
|
}
|