29 lines
662 B
Nix
Raw Permalink Normal View History

2024-04-14 07:57:07 +02:00
{ config, pkgs, lib, ... }:
let nameValuePair = name: value: { inherit name value; };
in {
2023-11-04 02:28:27 +01:00
programs.zsh.enable = true;
users = {
defaultUserShell = pkgs.zsh;
2024-04-14 07:57:07 +02:00
users = builtins.listToAttrs (map (userConfig:
nameValuePair userConfig.username {
isNormalUser = true;
description = "${userConfig.username}";
extraGroups = [
"networkmanager"
"wheel"
2024-09-03 23:24:43 +02:00
"dialout"
2024-04-14 07:57:07 +02:00
"vboxsf"
"adbusers"
"libvirtd"
"kvm"
"lp"
"audio"
"video"
"docker"
2024-04-15 18:34:14 +02:00
"podman"
2024-04-14 07:57:07 +02:00
"wireshark"
];
}) config.syscfg.users);
2023-11-04 02:28:27 +01:00
};
}