Files
nix-config/hosts/common/optional/minimal-user.nix
2025-05-12 23:25:39 -03:00

14 lines
532 B
Nix

# NOTE: This module is required for nixos-installer
{ config, ... }:
{
# Set a temp password for use by minimal builds like installer and iso
users.users.${config.hostSpec.username} = {
isNormalUser = true;
# This is a hashed version of the plain-text password "nixos" for use in the ISO. Even though,
# the password is known, we use `hashedPassword` here instead of `password` to mitigate
# occurrences of the latter not being used during build.
password = "password";
extraGroups = [ "wheel" ];
};
}