dotfiles/modules/system/user.nix
2022-04-28 21:56:21 -04:00

21 lines
414 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.

{ user, ... }: {
# Define a user account. Don't forget to set a password with passwd.
users.users.${user} = {
# Create a home directory for human user
isNormalUser = true;
# Automatically create a password to start
initialPassword = "changeme";
# Enable sudo privileges
extraGroups = [
"wheel" # Sudo privileges
"i2c" # Access to external monitors
];
};
}