added thin user option to leyla
This commit is contained in:
parent
4ab2cad4d2
commit
fef18e7902
4 changed files with 64 additions and 101 deletions
|
@ -9,6 +9,7 @@ in
|
|||
|
||||
options.users.leyla = {
|
||||
isNormalUser = lib.mkEnableOption "create usable leyla user";
|
||||
isThinInstallation = lib.mkEnableOption "are most programs going to be installed or not";
|
||||
hasPiperMouse = lib.mkEnableOption "install programs for managing piper supported mouses";
|
||||
hasOpenRGBHardware = lib.mkEnableOption "install programs for managing openRGB supported hardware";
|
||||
hasViaKeyboard = lib.mkEnableOption "install programs for managing via supported keyboards";
|
||||
|
@ -35,7 +36,12 @@ in
|
|||
(
|
||||
if cfg.isNormalUser then {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "networkmanager" "wheel" "adbusers" "docker" ];
|
||||
extraGroups = lib.mkMerge [
|
||||
["networkmanager" "wheel" "docker"]
|
||||
(
|
||||
lib.mkIf (!cfg.isThinInstallation) [ "adbusers" ]
|
||||
)
|
||||
];
|
||||
|
||||
hashedPasswordFile = config.sops.secrets."passwords/leyla".path;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue