this derivation will be built: /nix/store/9ncsw1rvrxqj3wjr15jk5pfnf1hhj0hm-treefmt-check.drv this path will be fetched (0.0 KiB download, 12.2 MiB unpacked): /nix/store/yplq5f2z4w95704f3fk3i513y872chil-git-lfs-3.7.1 warning: ignoring the client-specified setting 'store', because it is a restricted setting and you are not a trusted user error: Cannot build '/nix/store/9ncsw1rvrxqj3wjr15jk5pfnf1hhj0hm-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/x91gd3azn2nlbsh3ncb11f632i0dcsxa-treefmt-check Last 25 log lines: > --- a/nixosModules/clanCore/postgresql/default.nix > +++ b/nixosModules/clanCore/postgresql/default.nix > @@ -135,7 +135,8 @@ in > } > ]; > > - warnings = lib.mapAttrsToList (serviceName: backupCfg: > + warnings = lib.mapAttrsToList ( > + serviceName: backupCfg: > lib.optionalString (!lib.elem backupCfg.database config.services.postgresql.ensureDatabases) '' > Database '${backupCfg.database}' configured for backup in clan.core.postgresql.backupDatabases.${serviceName} > is not listed in services.postgresql.ensureDatabases. This is fine when the database is provisioned by its > diff --git a/nixosModules/clanCore/postgresql/tests/flake-module.nix b/nixosModules/clanCore/postgresql/tests/flake-module.nix > index 1049739..42d93c3 100644 > --- a/nixosModules/clanCore/postgresql/tests/flake-module.nix > +++ b/nixosModules/clanCore/postgresql/tests/flake-module.nix > @@ -12,7 +12,7 @@ > > machines.machine = { > clan.core.postgresql.enable = true; > - clan.core.postgresql.backupDatabases.test = {}; > + clan.core.postgresql.backupDatabases.test = { }; > > services.postgresql.ensureDatabases = [ "test" ]; > services.postgresql.ensureUsers = [ For full logs, run: nix log /nix/store/9ncsw1rvrxqj3wjr15jk5pfnf1hhj0hm-treefmt-check.drv