postgresql: set package version globally

This commit is contained in:
Antoine Martin 2021-03-23 22:36:50 +01:00
parent 6174bcd165
commit 0cf16198a8
4 changed files with 8 additions and 2 deletions

View file

@ -14,6 +14,7 @@
./nextcloud.nix ./nextcloud.nix
./nginx.nix ./nginx.nix
./postgresql-backup.nix ./postgresql-backup.nix
./postgresql.nix
./tgv.nix ./tgv.nix
./transmission.nix ./transmission.nix
./wireguard.nix ./wireguard.nix

View file

@ -33,7 +33,6 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.postgresql = { services.postgresql = {
enable = true; enable = true;
package = pkgs.postgresql_12;
}; };
services.postgresqlBackup = { services.postgresqlBackup = {

View file

@ -14,7 +14,6 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# FIXME: set postgresql package globally
services.postgresql = { services.postgresql = {
enable = true; enable = true;

7
services/postgresql.nix Normal file
View 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;
};
}