summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--machines/renard/default.nix3
-rw-r--r--modules/git.nix14
2 files changed, 16 insertions, 1 deletions
diff --git a/machines/renard/default.nix b/machines/renard/default.nix
index faf0042..c55b6b6 100644
--- a/machines/renard/default.nix
+++ b/machines/renard/default.nix
@@ -6,8 +6,9 @@
./hardware.nix
./devices.nix
-
+
../../modules/www.nix
+ ../../modules/git.nix
];
services.nginx.virtualHosts = {
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 = {};
+}