Link to full repo. : ( I am currently only working on the xin specialization. The others are acting as placeholders. )
After rebuilding my configuration with
# nixos-rebuild switch --flake .#vortex
I get the following messages
reloading user units for xin...
No passwd entry for user 'xin'
After witch I cannot use sudo
or commands like reboot
. The system does successfully build though, and the problem is fixed after restarting my computer.
Relevant config highlights
configuration.nix
{
imports = [
./xin-configuration.nix
];
...
users.mutableUsers = false;
security.sudo.wheelNeedsPassword = false;
...
}
xin-configuration.nix
{
specialisation.xin.configuration = {
system.nixos.tags = [ "xin" ];
...
users.users.root = {
hashedPassword = "(sha256 hash ...)"
};
users.users.xin = {
isNormalUser = true;
description = "Xin";
uid = 1002;
extraGroups = [ "networkmanager" "wheel" ];
hashedPassword = "(sha256 hash ...)"
};
};
}