Add traverse to family users

This commit is contained in:
Alex Davies 2024-05-31 09:20:03 -03:00
parent d8fa2eb8c9
commit e625e79bda
2 changed files with 14 additions and 6 deletions

View File

@ -74,7 +74,7 @@
./nixos/kde-desktop.nix ./nixos/kde-desktop.nix
./nixos/cad.nix ./nixos/cad.nix
./nixos/zerotier.nix ./nixos/zerotier.nix
./nixos/work.nix ./nixos/family.nix
]; ];
}; };
#Work laptop, dell g15. #Work laptop, dell g15.
@ -91,7 +91,7 @@
./nixos/work.nix ./nixos/work.nix
]; ];
}; };
#Thinkpad E15 Gen 3 Laptop (ThinkPad) - Type 20YG - Model 20YG003EUS #Thinkpad E15 Gen 3 Laptop - Type 20YG - Model 20YG003EUS
raziel = nixpkgs.lib.nixosSystem { raziel = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs outputs; inherit inputs outputs;

View File

@ -1,9 +1,13 @@
{ inputs, outputs, lib, config, pkgs, hostname, specialArgs, ... }: { { inputs, outputs, lib, config, pkgs, hostname, specialArgs, ... }:
services.displayManager = { let
autoLoginUser = specialArgs.mainUser or null;
in
{
services.displayManager = lib.mkIf (autoLoginUser != null) {
autoLogin.enable = true; autoLogin.enable = true;
autoLogin.user = "${specialArgs.mainUser}"; autoLogin.user = autoLoginUser;
}; };
users.users = { users.users = {
gwen = { gwen = {
@ -14,5 +18,9 @@
isNormalUser = true; isNormalUser = true;
extraGroups = [ "networkManager" ]; extraGroups = [ "networkManager" ];
}; };
logic11 = {
isNormalUser = true;
extraGroups = [ "wheel" "dialout" "networkmanager" "dialout" "docker" "plugdev" "vboxusers" ];
};
}; };
} }