5b6fae13fb
Thread username and fullName per host through the flake host table and specialArgs / home-manager.extraSpecialArgs, so user.nix and git.nix derive identity instead of hardcoding it. MBP and X1 now provision user lyrathorpe (Lyra Thorpe). EDaaS retains emmathorpe (Emma Thorpe) and its wsl.defaultUser; work commit email is unchanged.
30 lines
509 B
Nix
30 lines
509 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
username,
|
|
fullName,
|
|
...
|
|
}:
|
|
|
|
{
|
|
programs.zsh.enable = true;
|
|
users.users.${username} = {
|
|
isNormalUser = true;
|
|
home = "/home/${username}";
|
|
description = fullName;
|
|
extraGroups = [
|
|
"wheel"
|
|
"docker"
|
|
];
|
|
shell = pkgs.zsh;
|
|
};
|
|
programs.firefox = lib.mkIf (config.features.swayDesktop.enable == true) {
|
|
enable = true;
|
|
};
|
|
programs.thunderbird = lib.mkIf (config.features.swayDesktop.enable == true) {
|
|
enable = true;
|
|
};
|
|
}
|