-
-
Notifications
You must be signed in to change notification settings - Fork 319
module: only activate pg_trgm extensions on first db setup #1226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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.