soraefir 448fe0c18b
Some checks failed
Nix Build / build-nixos (push) Failing after 32s
Server & Podman
2024-04-15 18:34:14 +02:00

28 lines
642 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"
"podman"
"wireshark"
];
}) config.syscfg.users);
};
}