update path again, add getty program

This commit is contained in:
Richard Mauer 2024-12-30 21:28:56 -05:00
parent 7631776148
commit 5209b73bdc

View File

@ -7,10 +7,8 @@ let
installFiles = pkgs.runCommand "install-files" { installFiles = pkgs.runCommand "install-files" {
#inherit (pkgs) coreutils; #inherit (pkgs) coreutils;
} '' } ''
mkdir -p $out/bin mkdir -p $out
cp -rv ${./initrd-include}/* $out/bin/ cp -rv ${./initrd-include}/* $out/
# Add a marker file to help verify the package is being included
echo "Install files package was built" > $out/bin/marker.txt
''; '';
in in
{ {
@ -22,6 +20,7 @@ in
config = { config = {
services.getty.autologinUser = "nixos"; services.getty.autologinUser = "nixos";
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
services.getty.loginProgram = "${installFiles}/bin/install.sh";
users.users.nixos = { users.users.nixos = {
isNormalUser = true; isNormalUser = true;
password = "password"; password = "password";