Infini-DL360/postgresql: init
This commit is contained in:
parent
d90808baa7
commit
01640b7232
2 changed files with 14 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
./freshrss.nix
|
./freshrss.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
|
./postgresql.nix
|
||||||
./thelounge.nix
|
./thelounge.nix
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
];
|
];
|
||||||
|
|
13
hosts/Infini-DL360/postgresql.nix
Normal file
13
hosts/Infini-DL360/postgresql.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
let
|
||||||
|
directory = "/srv/postgresql";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
persist.directories = [ { inherit directory; user = "postgres"; group = "postgresl"; } ];
|
||||||
|
|
||||||
|
services.postgresql = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.postgresql_16;
|
||||||
|
dataDir = "${directory}/${config.services.postgresql.package.psqlSchema}";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue