diff --git a/nix/master.nix b/nix/master.nix index 3d82dc0..6d6f0e2 100644 --- a/nix/master.nix +++ b/nix/master.nix @@ -209,12 +209,10 @@ in services.postgresql = { enable = true; ensureDatabases = [ "buildbot" ]; - ensureUsers = [ - { - name = "buildbot"; - ensurePermissions."DATABASE buildbot" = "ALL PRIVILEGES"; - } - ]; + ensureUsers = [{ + name = "buildbot"; + ensureDBOwnership = true; + }]; }; services.nginx.enable = true;