From ce831333a24011d0692f6871047fe74eab9fab8c Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 29 Nov 2026 17:24:18 +0100 Subject: initial commit --- config/services/git/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 config/services/git/default.nix (limited to 'config/services/git/default.nix') diff --git a/config/services/git/default.nix b/config/services/git/default.nix new file mode 100644 index 0000000..1ebc5e6 --- /dev/null +++ b/config/services/git/default.nix @@ -0,0 +1,23 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ./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 + ]; + }; + + users.groups.git = { }; +} -- cgit v1.3.1