add postgres to swan

This commit is contained in:
Noah Masur 2024-01-17 00:58:01 +00:00
parent 6560d2f9a2
commit c8a8b7a897
3 changed files with 18 additions and 0 deletions

View File

@ -82,6 +82,7 @@ inputs.nixpkgs.lib.nixosSystem {
services.vmagent.enable = true; services.vmagent.enable = true;
services.samba.enable = true; services.samba.enable = true;
services.paperless.enable = true; services.paperless.enable = true;
services.postgresql.enable = true;
# Allows private remote access over the internet # Allows private remote access over the internet
cloudflareTunnel = { cloudflareTunnel = {

View File

@ -24,6 +24,7 @@
./netdata.nix ./netdata.nix
./nextcloud.nix ./nextcloud.nix
./paperless.nix ./paperless.nix
./postgresql.nix
./prometheus.nix ./prometheus.nix
./samba.nix ./samba.nix
./secrets.nix ./secrets.nix

View File

@ -0,0 +1,16 @@
{ config, ... }: {
services.postgresql = {
settings = { };
identMap = "";
ensureUsers = [{
name = config.user;
ensureClauses = {
createdb = true;
createrole = true;
login = true;
};
}];
};
}