mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-25 18:42:19 +00:00
27 lines
No EOL
545 B
Nix
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;
|
|
|
|
} |