dotfiles/hosts/common/users/john/default.nix
2023-09-23 20:46:36 -05:00

27 lines
No EOL
545 B
Nix

{ pkgs, config, ... }:
let ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in
{
users.users.john = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups = [
"audio"
"video"
"wheel"
] ++ ifTheyExist [
"docker"
"libvirtd"
"mysql"
"network"
"networkmanager"
"podman"
"wireshark"
];
packages = [ pkgs.home-manager ];
};
home-manager.users.john = import ../../../../home/${config.networking.hostName}.nix;
}