dot.nix/hosts/users/minimal/default.nix

23 lines
403 B
Nix

{ config, ... }:
let
hostSpec = config.hostSpec;
in
{
users.groups = {
ryot = {
gid = 1004;
members = [ "${hostSpec.username}" ];
};
};
# Set a temp password for use by minimal builds like installer and iso
users.users.${hostSpec.username} = {
isNormalUser = true;
password = hostSpec.password;
group = "ryot";
extraGroups = [
"wheel"
];
};
}