git signing

This commit is contained in:
Henri Dohmen 2025-07-14 21:55:44 +02:00
parent fc85e43c82
commit a018670eae
Signed by: hd
GPG key ID: AB79213B044674AE
5 changed files with 69 additions and 8 deletions

13
host/roam/git.nix Normal file
View file

@ -0,0 +1,13 @@
{ pkgs, var, ... }:
{
programs.git.enable = true;
users.groups.git = { };
users.users.git = {
isSystemUser = true;
home = "/git";
createHome = true;
group = "git";
shell = "${pkgs.git}/bin/git-shell";
openssh.authorizedKeys.keys = var.ssh-keys.unprivileged;
};
}