diff --git a/modules/postgresql.nix b/modules/postgresql.nix index 9474c7b..97fa034 100644 --- a/modules/postgresql.nix +++ b/modules/postgresql.nix @@ -1,8 +1,8 @@ -{ pkgs, config, ... }: +{ pkgs, config, lib, ... }: { services.postgresql = { enable = true; - package = pkgs.postgresql_14; + package = lib.mkDefault pkgs.postgresql_14; enableTCPIP = true; ensureUsers = [ { diff --git a/systems/mc4/configuration.nix b/systems/mc4/configuration.nix index fee7566..c634367 100644 --- a/systems/mc4/configuration.nix +++ b/systems/mc4/configuration.nix @@ -15,8 +15,14 @@ ./modules/tandoor.nix ./modules/powerdns-web.nix ./modules/zabbix-server.nix + #./modules/update-postgresql.nix ]; + #set postgresql to 14 because of timescaledb + services.postgresql = { + package = pkgs.postgresql_14; + }; + programs.atop.atopacctService.enable = false; system.stateVersion = "22.05";