grimm-nixos-laptop/users.nix
2024-10-22 22:05:22 +02:00

50 lines
913 B
Nix

{
lib,
config,
pkgs,
...
}:
{
users.users.grimmauld = {
isNormalUser = true;
# shell = pkgs.xonsh;
description = "grimmauld";
openssh.authorizedKeys.keys = (import ./authorizedKeys.nix);
extraGroups = lib.intersectLists (lib.attrNames config.users.groups) [
"networkmanager"
"kvm"
"wheel"
"docker"
"input"
"video"
"lp"
"scanner"
"libvirt"
"libvirt-qemu"
"libvirtd"
"pipewire"
"gamemode"
"i2c"
]; # only add to groups that actually exist on this system
syncPaths = [
{ remote = "3d"; }
{ remote = "Pictures"; }
{ remote = "Documents"; }
{ remote = "Videos"; }
];
packages = lib.optionals config.grimmShared.graphical (
with pkgs;
[
vesktop
obs-studio
# element-desktop
# ghidra
rmview
]
);
};
}