postgresql: set package version globally
This commit is contained in:
parent
6174bcd165
commit
0cf16198a8
|
@ -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
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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
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