| 15 Nov 2023 |
| @grahamc:nixos.org | 16:39:10 |
| @grahamc:nixos.org left the room. | 16:42:14 |
| Alyssa Ross | 17:10:42 |
| NixOS Moderation Botchanged room power levels. | 18:12:58 |
| NixOS Moderation Botchanged room power levels. | 18:12:59 |
| 16 Nov 2023 |
Vladimír Čunát | staging-next merged. | 21:11:32 |
hexa | which means hydra will be busy for the next 24 hours realizing that most things are cached | 21:25:59 |
hexa | but timing-wise we are okay | 21:26:15 |
| 17 Nov 2023 |
Vladimír Čunát | FYI, the cut of things from staging was on November 11, i.e. staged things up to that point are in master/23.11 now. Given that the original schedule planned this point to 13th, I think it should be OK to make this the last merge and only cherry-pick whatever is considered important for 23.11. | 06:16:28 |
Vladimír Čunát | (I see like only 5 changes merged to staging in that period anyway.) | 06:17:47 |
Vladimír Čunát | (I guess we should create staging-23.11 soon.) | 06:18:11 |
Vladimír Čunát | * (I guess we should create staging-23.11 soon, as a target for PRs.) | 06:18:27 |
raitobezarius | FWIW, https://github.com/NixOS/nixpkgs/pull/267640 | 13:52:34 |
raitobezarius | I don't like this | 13:52:37 |
raitobezarius | bendlas: My PR will soon go out | 14:34:04 |
raitobezarius | I'm almost done with backward compat fixes | 14:34:14 |
bendlas | the postgres one? | 14:34:29 |
raitobezarius | yep | 14:34:42 |
bendlas | cool, yeah, I think the doc update should also be good to go | 14:35:16 |
raitobezarius | perfect | 14:36:33 |
raitobezarius | oh ffs… https://github.com/iv-org/invidious/blob/c5b87e3b5e5cc7f7f5c8baa7732bd6d81d8f910a/src/invidious/database/migrations/0001_create_channels_table.cr#L7 | 14:44:41 |
raitobezarius | I am having doubts if using explicitly the schema for creating tables can mess up our strategies or not | 14:46:20 |
bendlas | you mean the public. prefix? | 14:47:07 |
raitobezarius | yep | 14:47:29 |
bendlas | what would be the problem there, if we're the owner? | 14:47:37 |
raitobezarius | # TODO(raitobezarius to maintainers of invidious): I strongly advise to clean up the kemal specific
# thing for 24.05 and use `ensureDBOwnership`.
# See https://github.com/NixOS/nixpkgs/issues/216989
systemd.services.postgresql.postStart = lib.mkAfter ''
$PSQL -tAc 'ALTER DATABASE "${cfg.settings.db.dbname}" OWNER TO "${cfg.settings.db.user}";'
$PSQL -tAc 'GRANT USAGE, CREATE ON SCHEMA public TO "${cfg.settings.db.user}";'
'';
services.postgresql = {
enable = true;
ensureUsers = lib.singleton { name = cfg.settings.db.user; };
ensureDatabases = lib.singleton cfg.settings.db.dbname;
# This is only needed because the unix user invidious isn't the same as
# the database user. This tells postgres to map one to the other.
identMap = ''
invidious invidious ${cfg.settings.db.user}
'';
# And this specifically enables peer authentication for only this
# database, which allows passwordless authentication over the postgres
# unix socket for the user map given above.
authentication = ''
local ${cfg.settings.db.dbname} ${cfg.settings.db.user} peer map=invidious
'';
};
| 14:47:48 |
raitobezarius | basically this is the context | 14:47:51 |
raitobezarius | "I" am owner, I even have USAGE, CREATE on the schema | 14:48:00 |
raitobezarius | and this still fails… | 14:48:03 |
raitobezarius | I wonder if this is related to the usermap | 14:48:09 |