mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Split Nix config in modules
This commit is contained in:
parent
380361eeeb
commit
dd5b87f66e
7 changed files with 80 additions and 77 deletions
13
modules/postgresql.nix
Normal file
13
modules/postgresql.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_12;
|
||||
initialScript = "/var/keys/postgres-init.sql";
|
||||
enableTCPIP = true;
|
||||
authentication = ''
|
||||
host all all 10.0.1.0/24 md5
|
||||
'';
|
||||
};
|
||||
users.users.postgres.extraGroups = [ "keys" ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue