Prevent user from being locked out with generic machine-conf
This commit is contained in:
parent
58b74a8534
commit
78f0a061e0
2 changed files with 7 additions and 1 deletions
|
@ -10,6 +10,9 @@
|
|||
#Many installs will need this, and it won't hurt either way
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
#Prevent user from being locked out of the system before switching to proper config
|
||||
users.mutableUsers = pkgs.lib.mkForce true;
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/var/lib/swapfile";
|
||||
|
|
|
@ -21,7 +21,7 @@ let
|
|||
mv /mnt/etc/nixos/configuration.nix configuration.nix.old
|
||||
curl https://raw.githubusercontent.com/VSinerva/nixos-conf/main/misc/template-configuration.nix -o /mnt/etc/nixos/configuration.nix
|
||||
|
||||
nixos-install --no-root-password
|
||||
nixos-install
|
||||
fi
|
||||
'';
|
||||
in
|
||||
|
@ -37,4 +37,7 @@ in
|
|||
|
||||
#Many installs will need this, and it won't hurt either way
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
#Prevent user from being locked out of the system before switching to proper config
|
||||
users.mutableUsers = pkgs.lib.mkForce true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue