diff options
author | Maximilian Bosch | 2024-11-02 16:52:02 +0100 |
---|---|---|
committer | Maximilian Bosch | 2024-11-15 09:17:06 +0100 |
commit | 0b3eef7441c4c8becc61d67004bd8d05c33922a1 (patch) | |
tree | c94d0575c242fe16c24a7fd956eded10499d7760 /nixos/modules/services/web-apps/outline.nix | |
parent | 4a8b1cc9584b8e766b4cf7dd67264b94225f3be1 (diff) |
postgresql_12: remove
This will be EOL at the end of November, so there's little reason to keep it in 24.11[1]. As discussed, we'd like to keep it for as long as possible to make sure there's a state in nixpkgs that has the latest minor of postgresql_12 available with the most recent CVEs fixed for people who cannot upgrade[2]. This aspect has been made explicit in the manual now for the next .11 release. During the discussions it has been brought up that if people just do `services.postgresql.enable = true;` and let the code decide the postgresql version based on `system.stateVersion`, there's a chance that such EOL dates will be missed. To make this harder, a warning will now be raised when using the stateVersion-condition and the oldest still available major is selected. Additionally regrouped the postgresql things in the release notes to make sure these are all shown consecutively. Otherwise it's a little hard to keep track of all the changes made to postgresql in 24.11. [1] https://endoflife.date/postgresql [2] https://github.com/NixOS/nixpkgs/pull/353158#issuecomment-2453056692
Diffstat (limited to 'nixos/modules/services/web-apps/outline.nix')
-rw-r--r-- | nixos/modules/services/web-apps/outline.nix | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/nixos/modules/services/web-apps/outline.nix b/nixos/modules/services/web-apps/outline.nix index 4c1de579ecc5..ba426ce89bbf 100644 --- a/nixos/modules/services/web-apps/outline.nix +++ b/nixos/modules/services/web-apps/outline.nix @@ -586,37 +586,6 @@ in ensureDatabases = [ "outline" ]; }; - # Outline is unable to create the uuid-ossp extension when using postgresql 12, in later version this - # extension can be created without superuser permission. This services therefor this extension before - # outline starts and postgresql 12 is using on the host. - # - # Can be removed after postgresql 12 is dropped from nixos. - systemd.services.outline-postgresql = - let - pgsql = config.services.postgresql; - in - lib.mkIf (cfg.databaseUrl == "local" && pgsql.package == pkgs.postgresql_12) { - after = [ "postgresql.service" ]; - bindsTo = [ "postgresql.service" ]; - wantedBy = [ "outline.service" ]; - partOf = [ "outline.service" ]; - path = [ - pgsql.package - ]; - script = '' - set -o errexit -o pipefail -o nounset -o errtrace - shopt -s inherit_errexit - - psql outline -tAc 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"' - ''; - - serviceConfig = { - User = pgsql.superUser; - Type = "oneshot"; - RemainAfterExit = true; - }; - }; - services.redis.servers.outline = lib.mkIf (cfg.redisUrl == "local") { enable = true; user = config.services.outline.user; |