Merged Host/Home Opt into SysOpt
All checks were successful
Nix Build / build-nixos (push) Successful in 5m27s
All checks were successful
Nix Build / build-nixos (push) Successful in 5m27s
This commit is contained in:
@ -1,23 +1,26 @@
|
||||
{ config, pkgs, ... }: {
|
||||
{ config, pkgs, lib, ... }:
|
||||
let nameValuePair = name: value: { inherit name value; };
|
||||
in {
|
||||
programs.zsh.enable = true;
|
||||
users = {
|
||||
defaultUserShell = pkgs.zsh;
|
||||
users.${config.hostcfg.username} = {
|
||||
isNormalUser = true;
|
||||
description = "${config.hostcfg.username}";
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"vboxsf"
|
||||
"adbusers"
|
||||
"libvirtd"
|
||||
"kvm"
|
||||
"lp"
|
||||
"audio"
|
||||
"video"
|
||||
"docker"
|
||||
"wireshark"
|
||||
];
|
||||
};
|
||||
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);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user