mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 12:15:38 +00:00
add postgres to swan
This commit is contained in:
parent
6560d2f9a2
commit
c8a8b7a897
@ -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 = {
|
||||||
|
@ -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
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user