summary refs log tree commit diff
path: root/modules/git.nix
blob: f7a26c4722cbe4e3f8066ae977a40866e64198ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ me, keys, pkgs, ... }:

{
  users.users.git = {
    isSystemUser = true;
    description = "Git user";
    shell = "${pkgs.git}/bin/git-shell";
    home = "/srv/git";
    group = "git";

    openssh.authorizedKeys.keys = keys.allUsers;
  };
  users.groups.git = {};
}