moved user group configuration to environment common
This commit is contained in:
parent
1be145193e
commit
4145dd770f
|
@ -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"];
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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"]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue