From 54c42ebdd7ef63b7d4998fee989e6651392c2293 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sat, 18 Sep 2021 17:09:49 +0000 Subject: [PATCH] Add groups for users --- sets/builder.nix | 2 ++ sets/virtualization.nix | 1 + system/starlight/default.nix | 1 + 3 files changed, 4 insertions(+) diff --git a/sets/builder.nix b/sets/builder.nix index 9fae65a..77d8d7d 100644 --- a/sets/builder.nix +++ b/sets/builder.nix @@ -7,9 +7,11 @@ home = "/home/build"; createHome = true; useDefaultShell = true; + group = "build"; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFOBdARV3DVx4fKTf1hCSmOz+S06pI28cvrdo+FbWDP/ root@rainbowdash" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIElCYORRBERl/as01Obp1Og/mdy28V7gw32uCZseOSZt root@spike" ]; }; + users.groups.build = {}; } diff --git a/sets/virtualization.nix b/sets/virtualization.nix index 97b980d..43edaa2 100644 --- a/sets/virtualization.nix +++ b/sets/virtualization.nix @@ -32,6 +32,7 @@ isSystemUser = true; subUidRanges = [{ startUid = 16777216; count = 16777216; } { startUid = config.users.users.artemis.uid; count = 1; }]; subGidRanges = [{ startGid = 16777216; count = 16777216; } { startGid = 100; count = 1; } { startGid = config.users.groups.artemis.gid; count = 1; }]; + group = "lxd"; }; }; } diff --git a/system/starlight/default.nix b/system/starlight/default.nix index 5281b7d..e8baa99 100644 --- a/system/starlight/default.nix +++ b/system/starlight/default.nix @@ -53,6 +53,7 @@ users.users.skye = { isSystemUser = true; uid = 1001; + group = "users"; }; # Packages