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
./nginx.nix
./postgresql-backup.nix
./postgresql.nix
./tgv.nix
./transmission.nix
./wireguard.nix

View file

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

View file

@ -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
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;
};
}