Hi All,
I setup a simple git server with cgit on my nixos based server.
I created this user:
users.users.git = {
isSystemUser = true;
group = "git";
description = "git user";
home = "/var/lib/git";
shell = "${pkgs.git}/bin/git-shell";
openssh.authorizedKeys.keys = [
"my pub key"
];
};
users.groups.git = {};
users.extraUsers.nginx.extraGroups = [ "git" ];
since adding this when I do a nixes-rebuild
I get this error:
❯ nixos-rebuild switch
building Nix...
building the system configuration...
updating GRUB 2 menu...
activating the configuration...
setting up /etc...
reloading user units for root...
reloading user units for git...
reloading user units for git...
Failed to connect to bus: Permission denied
Failed to connect to bus: Permission denied
setting up tmpfiles
Permissions for the home folder that this user has is:
drwx------ 7 git git 4096 Apr 15 16:15 /var/lib/git
any thoughts on what this error means and what the problem good be as I am out of ideas?
Many thanks all for your time and help.