grimm-nixos-laptop/users.nix
2024-11-25 14:27:52 +01:00

50 lines
914 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
]
);
};
}