summary refs log tree commit diff
path: root/modules/git.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git.nix')
-rw-r--r--modules/git.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/git.nix b/modules/git.nix
new file mode 100644
index 0000000..1d592f0
--- /dev/null
+++ b/modules/git.nix
@@ -0,0 +1,14 @@
+{ me, security, pkgs, ... }:
+
+{
+  users.users.git = {
+    isSystemUser = true;
+    description = "Git user";
+    shell = "${pkgs.git}/bin/git-shell";
+    home = "/srv/git";
+    group = "git";
+
+    openssh.authorizedKeys.keys = security.keys;
+  };
+  users.groups.git = {};
+}