summaryrefslogtreecommitdiff
path: root/config/services/git/default.nix
blob: 915128d41ec1727ebf5a9efd260382b5ccdb01d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ config, pkgs, ... }:

{
  imports = [
    ./web
    ./shell-commands
  ];

  users.users.git = {
    isSystemUser = true;
    group = "git";
    createHome = true;
    homeMode = "750";
    home = "/srv/git";
    shell = "${pkgs.git}/bin/git-shell";
    openssh.authorizedKeys.keys = with config.personal.lib.publicKeys.ssh; [
      latitude-7490
      precision-3571
      dragonfly-g4
      optiplex-9030
    ];
  };

  users.groups.git = { };
}