dotfiles/modules/system/user.nix

19 lines
356 B
Nix
Raw Normal View History

2022-04-30 16:07:58 +00:00
{ identity, ... }: {
2022-04-29 01:56:21 +00:00
# Define a user account. Don't forget to set a password with passwd.
2022-04-30 16:07:58 +00:00
users.users.${identity.user} = {
2022-04-29 01:56:21 +00:00
# Create a home directory for human user
isNormalUser = true;
# Automatically create a password to start
initialPassword = "changeme";
extraGroups = [
"wheel" # Sudo privileges
];
};
}