new_nix/hosts/common/users/luna/default.nix
2025-03-16 19:45:20 +01:00

29 lines
647 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
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;
}