about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-05-13 19:06:45 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-05-13 19:07:56 +0200
commit640c0cee8a2386dd879b2338bdd4eaa8b2df20b7 (patch)
tree0beb459fa1c5b99de0b7bab9600b745fcd3b775b /machines
parent90bd94a7bf4e396c04817fb762b25459c16cd245 (diff)
downloaddots-640c0cee8a2386dd879b2338bdd4eaa8b2df20b7.tar.gz
dots-640c0cee8a2386dd879b2338bdd4eaa8b2df20b7.zip
Add git group
Diffstat (limited to 'machines')
-rw-r--r--machines/srv1/configuration.nix40
1 files changed, 24 insertions, 16 deletions
diff --git a/machines/srv1/configuration.nix b/machines/srv1/configuration.nix
index d13b054..37860cf 100644
--- a/machines/srv1/configuration.nix
+++ b/machines/srv1/configuration.nix
@@ -273,14 +273,6 @@ in
     };
   };
 
-  users.users.pn = {
-    isNormalUser = true;
-    extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
-    openssh.authorizedKeys.keys = [
-      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIqlCe4ovKa/Gwl5xmgu9nvVPmFXMgwdeLRYW7Gg7RWx pniedzwiedzinski19@gmail.com"
-    ];
-  };
-
   services.rss-bridge = {
     enable = true;
     virtualHost = "rss.srv1.niedzwiedzinski.cyou";
@@ -291,14 +283,30 @@ in
     ];
   };
 
-  users.users.git = {
-    isSystemUser = true;
-    description = "git user";
-    home = "/srv/git";
-    shell = "${pkgs.git}/bin/git-shell";
-    openssh.authorizedKeys.keys = [
-      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIqlCe4ovKa/Gwl5xmgu9nvVPmFXMgwdeLRYW7Gg7RWx pniedzwiedzinski19@gmail.com"
-    ];
+  users = {
+    groups = {
+      git = {};
+    };
+    users = {
+      pn = {
+        isNormalUser = true;
+        extraGroups = [ "wheel" "git" ]; # Enable ‘sudo’ for the user.
+        openssh.authorizedKeys.keys = [
+          "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIqlCe4ovKa/Gwl5xmgu9nvVPmFXMgwdeLRYW7Gg7RWx pniedzwiedzinski19@gmail.com"
+        ];
+      };
+
+      git = {
+        isSystemUser = true;
+        extraGroups = [ "git" ];
+        description = "git user";
+        home = "/srv/git";
+        shell = "${pkgs.git}/bin/git-shell";
+        openssh.authorizedKeys.keys = [
+          "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIqlCe4ovKa/Gwl5xmgu9nvVPmFXMgwdeLRYW7Gg7RWx pniedzwiedzinski19@gmail.com"
+        ];
+      };
+    };
   };
 
   # This value determines the NixOS release from which the default