summary refs log tree commit diff
path: root/modules/git.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-11-04 18:11:05 +0100
committerMel <einebeere@gmail.com>2024-11-04 18:11:05 +0100
commit09037ccd3f4e58d409ab7f9b84f93c37add5f31c (patch)
tree6654f15531bc9f3b2d508069a36bd7f5156c0e57 /modules/git.nix
parentc08dd04ad9775a458aec463e8402797c2f523860 (diff)
downloadnetwork-09037ccd3f4e58d409ab7f9b84f93c37add5f31c.tar.zst
network-09037ccd3f4e58d409ab7f9b84f93c37add5f31c.zip
Add git server user
Signed-off-by: Mel <einebeere@gmail.com>
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 = {};
+}