Prevent user from being locked out with generic machine-conf

This commit is contained in:
Vili Sinervä 2024-08-07 15:51:07 +03:00
parent 58b74a8534
commit 78f0a061e0
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
2 changed files with 7 additions and 1 deletions

View file

@ -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";

View file

@ -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;
}