feat(forgejo): rename forgejo user to git
This commit is contained in:
parent
383989516c
commit
af06b6d5ef
1 changed files with 13 additions and 1 deletions
|
|
@ -29,9 +29,11 @@ in
|
|||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
};
|
||||
user = "git";
|
||||
group = "git";
|
||||
};
|
||||
|
||||
openssh.settings.AllowUsers = [ "forgejo" ];
|
||||
openssh.settings.AllowUsers = [ "git" ];
|
||||
|
||||
borgbackup.jobs = {
|
||||
onsite.paths = [ "/var/lib/forgejo" ];
|
||||
|
|
@ -45,4 +47,14 @@ in
|
|||
}
|
||||
'';
|
||||
};
|
||||
|
||||
users = {
|
||||
users.git = {
|
||||
home = "/var/lib/forgejo";
|
||||
useDefaultShell = true;
|
||||
group = "git";
|
||||
isSystemUser = true;
|
||||
};
|
||||
groups.git = { };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue