postgres: only configure datadir once
This commit is contained in:
parent
7671566751
commit
9d0fa026f0
5 changed files with 6 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
@ -16,5 +16,8 @@
|
|||
./torrents
|
||||
];
|
||||
|
||||
services.postgresql.package = pkgs.postgresql_15;
|
||||
services.postgresql = {
|
||||
package = pkgs.postgresql_15;
|
||||
dataDir = "${config.chvp.dataPrefix}/var/lib/postgresql/${config.services.postgresql.package.psqlSchema}";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue