Skip to content

Commit dcfbbb8

Browse files
postgres: add c3nav, gradient (#399)
* postgres: add c3nav * postgres: add gradient * github/workflows/flake-check.yaml: remove exact nix version
1 parent 7e55bcf commit dcfbbb8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/flake-check.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
# Do we need this?
2727
# - repo: NuschtOS/nuschtpkgs
28-
# branch: nixos-25.11
28+
# branch: nixos-26.05
2929
- repo: NuschtOS/nuschtpkgs
3030
branch: backports-26.05
3131
- repo: NuschtOS/nuschtpkgs
@@ -39,8 +39,6 @@ jobs:
3939

4040
- name: Install Nix
4141
uses: nixbuild/nix-quick-install-action@v35
42-
with:
43-
nix_version: 2.31.2
4442

4543
- uses: nix-community/cache-nix-action@v7
4644
with:

modules/postgres.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,10 @@ in
316316
];
317317
upgrade.stopServices = with config.services; lib.mkMerge [
318318
(lib.mkIf (atuin.enable && atuin.database.createLocally) [ "atuin" ])
319+
(lib.mkIf (c3nav.enable && pretalx.settings.database.host == "/run/postgresql" or false) [ "c3nav-web" "c3nav-worker" ])
319320
(lib.mkIf (gancio.enable && gancio.settings.db.dialect == "postgres") [ "gancio" ])
320321
(lib.mkIf (gitea.enable && gitea.database.socket == "/run/postgresql") [ "gitea" ])
322+
(lib.mkIf (gradient.enable && gradient.configurePostgres) [ "gradient-server" ])
321323
(lib.mkIf (grafana.enable && grafana.settings.database.host == "/run/postgresql") [ "grafana" ])
322324
(lib.mkIf (healthchecks.enable && healthchecks.settings.DB_HOST == "/run/postgresql") [ "healthchecks" ])
323325
(lib.mkIf (hedgedoc.enable && hedgedoc.settings.db.host == "/run/postgresql") [ "hedgedoc" ])

0 commit comments

Comments
 (0)