mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 22:00:14 +00:00
add postgres to swan
This commit is contained in:
@ -24,6 +24,7 @@
|
||||
./netdata.nix
|
||||
./nextcloud.nix
|
||||
./paperless.nix
|
||||
./postgresql.nix
|
||||
./prometheus.nix
|
||||
./samba.nix
|
||||
./secrets.nix
|
||||
|
16
modules/nixos/services/postgresql.nix
Normal file
16
modules/nixos/services/postgresql.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{ config, ... }: {
|
||||
|
||||
services.postgresql = {
|
||||
settings = { };
|
||||
identMap = "";
|
||||
ensureUsers = [{
|
||||
name = config.user;
|
||||
ensureClauses = {
|
||||
createdb = true;
|
||||
createrole = true;
|
||||
login = true;
|
||||
};
|
||||
}];
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user