40 lines
737 B
Nix
40 lines
737 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
username = "dev";
|
|
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
|
in {
|
|
users.users.${username} = {
|
|
isNormalUser = true;
|
|
extraGroups = ifTheyExist [
|
|
"audio"
|
|
"deluge"
|
|
"docker"
|
|
"git"
|
|
"i2c"
|
|
"libvirtd"
|
|
"minecraft"
|
|
"mysql"
|
|
"wpa_supplicant"
|
|
"plugdev"
|
|
"podman"
|
|
"tss"
|
|
"video"
|
|
"wheel"
|
|
"wireshark"
|
|
];
|
|
|
|
};
|
|
|
|
# TODO: ensure correct paths
|
|
home-manager.users.${username} = import ../../../../../home/Ricky/${username}/${config.networking.hostName}.nix;
|
|
|
|
security.pam.services = {
|
|
swaylock = {};
|
|
${username}.enableGnomeKeyring = true;
|
|
};
|
|
}
|