soraefir 972cb47e3f
All checks were successful
Nix Build / build-nixos (push) Successful in 5m27s
Merged Host/Home Opt into SysOpt
2024-04-14 12:09:03 +02:00

27 lines
623 B
Nix

{ config, pkgs, lib, ... }:
let nameValuePair = name: value: { inherit name value; };
in {
programs.zsh.enable = true;
users = {
defaultUserShell = pkgs.zsh;
users = builtins.listToAttrs (map (userConfig:
nameValuePair userConfig.username {
isNormalUser = true;
description = "${userConfig.username}";
extraGroups = [
"networkmanager"
"wheel"
"vboxsf"
"adbusers"
"libvirtd"
"kvm"
"lp"
"audio"
"video"
"docker"
"wireshark"
];
}) config.syscfg.users);
};
}