mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 07:32:55 +00:00
21 lines
414 B
Nix
21 lines
414 B
Nix
{ 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
|
||
];
|
||
|
||
};
|
||
|
||
}
|