feat(forgejo): rename forgejo user to git

This commit is contained in:
Will Holdsworth 2026-03-09 20:59:29 +11:00
parent 383989516c
commit af06b6d5ef
Signed by: will-holdsworth
SSH key fingerprint: SHA256:Ykee8aymMJNAiYeeEmiwcIzkA1wgd4v8OZcWGxjq12c

View file

@ -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 = { };
};
}