nixos/gitea: Add support for the REQUIRE_SIGNIN_VIEW option#57671
nixos/gitea: Add support for the REQUIRE_SIGNIN_VIEW option#57671artemist wants to merge 1 commit intoNixOS:masterfrom
Conversation
| }; | ||
|
|
||
| requireSigninView = mkOption { | ||
| type = types.bool; |
There was a problem hiding this comment.
For enable options there's mkEnableOption. If you want e.g. a custom description you can do mkEnableOption "REQUIRE_SIGNIN_VIEW for gitea" // { description = "..." }.
|
@infinisil I'm just wondering what your opinion on option overload is since you've run benchmarks? Maintaining backwards compatibility is key, but the amount of dislocated documentation this module is gaining is getting unwieldy... and part of the motivation for this PR is simply because an option wasn't documented in NixOS. IMHO this module is perfect candidate for porting the config option to an attrSet (in a backwards compatible way, at least for a few releases) and making it clear that documentation is maintained upstream. Thoughts? |
|
9406f24 broke the sqlite test, because the buildFlags as given aren't honored by the go builder. The order of the build flags seems to influence if either PAM or sqlite support is built into the binary. I'm not a go pro, so I haven't yet found a way in which this works, and am currently pretty time constrained. If @artemist wants to look into this, feel free. |
|
@aanderse Yeah it would be a good candidate, but so would lots of other services and PRs. I'd rather focus on writing an RFC for it, which I already started with. |
|
A different config system would definitely work well, this is a bit unwieldy. I can confirm that you can still override with extraConfig, as I did in an earlier configuration. |
|
btw #58584 should fix the broken tests. |
|
For reference the RFC is open now: NixOS/rfcs#42 I'm planning on making some changes to the gitea module at some point after #56720 is merged. When I'm making those changes I might find the energy to modify the module to have a |
|
Thank you for your contributions.
|
|
#85904 did indeed incorporate this, closing. |
Motivation for this change
The REQUIRE_SIGNIN_VIEW option in gitea is useful for making private git servers, but I didn't originally notice it since there was no option in NixOS.
Things done
Add a new option which maps to REQUIRE_SIGNIN_VIEW.
This is marked as draft, since the gitea tests are failing. However, that is likely not my problem, since they seem to fail on master as well (due to a binary which doesn't support sqlite3).
sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)nix path-info -Sbefore and after)