mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
forgejo: Rename service user to git
This commit is contained in:
parent
e5b6374751
commit
5074bbeae4
2 changed files with 14 additions and 2 deletions
|
|
@ -27,11 +27,23 @@ in
|
||||||
ports.tcp.list = [ cfg.port ];
|
ports.tcp.list = [ cfg.port ];
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.secrets."forgejo/admin-password".owner = config.users.users.forgejo.name;
|
sops.secrets."forgejo/admin-password".owner = config.users.users.git.name;
|
||||||
|
|
||||||
|
users = {
|
||||||
|
users.git = {
|
||||||
|
isSystemUser = true;
|
||||||
|
useDefaultShell = true;
|
||||||
|
group = config.users.groups.git.name;
|
||||||
|
home = config.services.forgejo.stateDir;
|
||||||
|
};
|
||||||
|
groups.git = { };
|
||||||
|
};
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs-unstable.forgejo;
|
package = pkgs-unstable.forgejo;
|
||||||
|
user = "git";
|
||||||
|
group = "git";
|
||||||
|
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ in
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
PermitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
AllowUsers = [ config.users.users.forgejo.name ];
|
AllowUsers = [ config.services.forgejo.user ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue