Browse Source

Add subuid and subgids

Thomas Dy 4 years ago
parent
commit
808fad8845
1 changed files with 13 additions and 0 deletions
  1. 13 0
      configuration.nix

+ 13 - 0
configuration.nix

@@ -39,9 +39,22 @@
 
   # Define a user account. Don't forget to set a password with ‘passwd’.
   users.users.thomas = {
+    uid = 1000;
     isNormalUser = true;
     extraGroups = [ "wheel" "video" "networkmanager" "libvirtd" ];
     shell = pkgs.zsh;
+
+    subUidRanges = [
+      { count = 65535; startUid = 100001; }
+    ];
+    subGidRanges = [
+      { count = 65535; startGid = 100001; }
+    ];
+  };
+
+  users.groups.thomas = {
+    gid = 1000;
+    members = [ "thomas" ];
   };
 
   nix.gc = {