-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
gitea doesn't work for user other than gitea
#201672
Comments
But this would only fail if you change |
Indeed.
What if a user wanted to automatically create a user with a different name? I.e., |
then ... just do it? {
services.gitea.user = "git";
users.users.git = {
description = "Git Service";
home = "/var/lib/git";
useDefaultShell = true;
group = "git";
isSystemUser = true;
}; |
While this if of course possible, it's unintuitive to new users. The descriptions of If you don't want to change this behaviour, perhaps instead the Alternatively the documentation could be improved, adding the line |
This is not a support issue, but rather my trying to improve the experience of using this module for the first time. |
all services work like this ... the nginx service creates user nginx,
maybe the docs could be improved the nixos docs mention
so maybe you can use users.users.gitea.extraGroups = [ "git" ]; ... or whatever it is youre actually trying to do why should |
Personally, I want the urls to my git repositories to be |
Fair enough, but I think this is a slightly different case because the user is exposed in the ssh URLs (whereas for nginx, it really doesn't matter) |
makes sense still, you will have to configure this manually simple: complex: find a way to alias the virtual user "git" to the internal user "gitea" https://askubuntu.com/a/1211837/877276
https://serverfault.com/a/570736/499621
go-gitea/gitea#3631 happy reading ^^ |
This is what I'm doing now:
But it's not the most ergonomic.
I don't think just because all the other services work like this doesn't mean this one has to. We could still isolate the service with a system user while customizing the name of said user.
This sounds horrible :-) And I believe gitea is already doing some of this magic behind the scenes, so I'm loath to add more on top of this. I'm already proxying the public port 22 to the internal gitea ssh server (and using a vpn interface for shell access):
|
Describe the bug
The deployment will fail due to a user not existing, because of this line:
nixpkgs/nixos/modules/services/misc/gitea.nix
Line 605 in 814f8f3
Additional context
This is the configuration I'm using: https://github.com/RyanGibb/nixos/blob/master/modules/services/gitea.nix
Notify maintainers
@srhb @Ma27
Metadata
The text was updated successfully, but these errors were encountered: