chore: Add first login pw

This commit is contained in:
dashie 2024-04-16 20:15:54 +02:00
parent 48d8933de5
commit ab897f750d
2 changed files with 7 additions and 1 deletions

View file

@ -50,6 +50,8 @@
DIRENV_LOG_FORMAT = ""; DIRENV_LOG_FORMAT = "";
}; };
# allows user change later on
users.mutableUsers=true;
users.users.dashie = { users.users.dashie = {
isNormalUser = true; isNormalUser = true;
description = "dashie"; description = "dashie";
@ -59,6 +61,9 @@
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
]; ];
# this password will only last for the first login
# e.g. login, then change to whatever else, this also ensures no public hash is available
hashedPassword="firstlogin";
}; };
nix.settings = { nix.settings = {

View file

@ -16,7 +16,8 @@ if [ "$IN" == "y" ]; then
e2label "$1"4 HOME e2label "$1"4 HOME
fi fi
# install nixos # install nixos
nixos-install --flake ./nix/.#$2 echo "formatting finished, continuing to install system"
nixos-install --flake ./nix/.#$2 --no-root-passwd
else else
echo "aborting" echo "aborting"
fi fi