module: only activate pg_trgm extensions on first db setup#1226
module: only activate pg_trgm extensions on first db setup#1226SuperSandro2000 wants to merge 1 commit intoNixOS:masterfrom
Conversation
This was a migration step introduced in NixOS/nixpkgs@ce37a04 almost 3 years ago. This avoids executing sudo on every start and makes hydra easier to use with sudo's requiretty setting activated.
why? I don't see sudo here |
|
You don't know by chance if runuser is using sudo somehow behind the back? It was failing for me because I have in my sudoers file. |
|
Surely doesn't seem like it: To be honest, I don't even understand why |
|
I wasn't fully paying attention when doing this PR. NixOS is doing sudo https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/continuous-integration/hydra/default.nix#L321-L325 while the hydra flake is using runuser. So sudo is not used indeed. Could you take a look at NixOS/nixpkgs#178077 ?
So we can probably drop this here and in nixos, too? |
|
No, because in postgres the We could use |
|
I tried converting the nixos module to runuser but it can't find the binary and I am not sure how this works in the flake NixOS/nixpkgs#180536 |
|
utillinux provides runuser to the service, also see the line |
This was a migration step introduced in NixOS/nixpkgs@ce37a04 almost 3 years ago.
This avoids executing sudo on every start and makes hydra easier to use with sudo's requiretty setting activated.