29 lines
647 B
Nix
29 lines
647 B
Nix
{
|
||
pkgs,
|
||
config,
|
||
...
|
||
}: let
|
||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||
in {
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users.luna = {
|
||
isNormalUser = true;
|
||
description = "luna";
|
||
shell = pkgs.zsh;
|
||
extraGroups = ifTheyExist [
|
||
"audio"
|
||
"docker"
|
||
"networkmanager"
|
||
"wheel"
|
||
];
|
||
packages = with pkgs; [
|
||
# thunderbird
|
||
gnome-software
|
||
neovim
|
||
rustup
|
||
protonvpn-gui
|
||
];
|
||
};
|
||
|
||
home-manager.users.luna = import ../../../../home-manager/luna/${config.networking.hostName}.nix;
|
||
}
|