2023-12-24 18:48:52 +01:00
|
|
|
{
|
2023-12-25 03:39:20 +01:00
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
name,
|
|
|
|
pubKeys ? [],
|
|
|
|
defaultShell ? "zsh",
|
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
|
|
|
inherit name;
|
2023-12-24 18:48:52 +01:00
|
|
|
isNormalUser = true;
|
|
|
|
uid = 1000;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"media"
|
|
|
|
(lib.mkIf config.networking.networkmanager.enable "networkmanager")
|
|
|
|
(lib.mkIf config.programs.adb.enable "adbusers")
|
|
|
|
(lib.mkIf config.programs.wireshark.enable "wireshark")
|
2023-12-25 03:39:20 +01:00
|
|
|
(lib.mkIf config.virtualisation.docker.enable "docker")
|
2023-12-24 18:48:52 +01:00
|
|
|
"libvirtd"
|
|
|
|
"dialout"
|
|
|
|
"plugdev"
|
|
|
|
"uaccess"
|
|
|
|
];
|
2023-12-25 03:39:20 +01:00
|
|
|
shell = pkgs.${defaultShell};
|
|
|
|
openssh.authorizedKeys.keys = pubKeys;
|
2023-12-24 18:48:52 +01:00
|
|
|
}
|