initial commit
This commit is contained in:
13
hosts/common/optional/minimal-user.nix
Normal file
13
hosts/common/optional/minimal-user.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user