diff options
| author | Mel <einebeere@gmail.com> | 2024-11-04 18:11:05 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-11-04 18:11:05 +0100 |
| commit | 09037ccd3f4e58d409ab7f9b84f93c37add5f31c (patch) | |
| tree | 6654f15531bc9f3b2d508069a36bd7f5156c0e57 /modules/git.nix | |
| parent | c08dd04ad9775a458aec463e8402797c2f523860 (diff) | |
| download | network-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.nix | 14 |
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 = {}; +} |
