postgresql: set package version globally
This commit is contained in:
parent
6174bcd165
commit
0cf16198a8
|
@ -14,6 +14,7 @@
|
|||
./nextcloud.nix
|
||||
./nginx.nix
|
||||
./postgresql-backup.nix
|
||||
./postgresql.nix
|
||||
./tgv.nix
|
||||
./transmission.nix
|
||||
./wireguard.nix
|
||||
|
|
|
@ -33,7 +33,6 @@ in {
|
|||
config = lib.mkIf cfg.enable {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_12;
|
||||
};
|
||||
|
||||
services.postgresqlBackup = {
|
||||
|
|
|
@ -14,7 +14,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# FIXME: set postgresql package globally
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
|
||||
|
|
7
services/postgresql.nix
Normal file
7
services/postgresql.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
# set postgresql version so we don't get any bad surprise
|
||||
config.services.postgresql = {
|
||||
package = pkgs.postgresql_12;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue