moved user group configuration to environment common

This commit is contained in:
Leyla Becker 2024-09-22 17:56:50 -05:00
parent 1be145193e
commit 4145dd770f
4 changed files with 8 additions and 3 deletions

View file

@ -86,6 +86,11 @@
members = ["eve"]; members = ["eve"];
}; };
useres = {
gid = 100;
members = ["lelya" "ester" "eve"];
};
jellyfin = { jellyfin = {
gid = 2000; gid = 2000;
members = ["jellyfin" "leyla"]; members = ["jellyfin" "leyla"];

View file

@ -24,7 +24,7 @@ in {
if cfg.isFullUser if cfg.isFullUser
then { then {
isNormalUser = true; isNormalUser = true;
extraGroups = ["networkmanager" "users"]; extraGroups = ["networkmanager"];
hashedPasswordFile = config.sops.secrets."passwords/ester".path; hashedPasswordFile = config.sops.secrets."passwords/ester".path;

View file

@ -24,7 +24,7 @@ in {
if cfg.isFullUser if cfg.isFullUser
then { then {
isNormalUser = true; isNormalUser = true;
extraGroups = ["networkmanager" "users"]; extraGroups = ["networkmanager"];
hashedPasswordFile = config.sops.secrets."passwords/eve".path; hashedPasswordFile = config.sops.secrets."passwords/eve".path;

View file

@ -30,7 +30,7 @@ in {
then { then {
isNormalUser = true; isNormalUser = true;
extraGroups = lib.mkMerge [ extraGroups = lib.mkMerge [
["networkmanager" "wheel" "users"] ["networkmanager" "wheel"]
( (
lib.mkIf (!cfg.isThinUser) ["adbusers"] lib.mkIf (!cfg.isThinUser) ["adbusers"]
) )