This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
2022-08-14 03:28:57 +00:00
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
2022-08-14 23:35:15 +00:00
|
|
|
|
{ config, lib, pkgs, user, ... }: {
|
2022-08-14 03:28:57 +00:00
|
|
|
|
users.users = {
|
|
|
|
|
root.initialPassword = "noreallychangemenow";
|
2022-08-14 23:35:15 +00:00
|
|
|
|
|
|
|
|
|
"${user.name}" = {
|
|
|
|
|
description = "${user.description}";
|
2022-08-14 03:28:57 +00:00
|
|
|
|
extraGroups = [ "wheel" "systemd-journal" ];
|
|
|
|
|
initialPassword = "nixos";
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
|
};
|
|
|
|
|
};
|
2022-08-14 23:35:15 +00:00
|
|
|
|
|
|
|
|
|
home-manager.users."${user.name}".home = {
|
|
|
|
|
username = "${user.name}";
|
|
|
|
|
homeDirectory = "/home/${user.name}";
|
|
|
|
|
};
|
2022-08-14 03:28:57 +00:00
|
|
|
|
}
|