update path again, add getty program
This commit is contained in:
parent
7631776148
commit
5209b73bdc
@ -7,10 +7,8 @@ let
|
||||
installFiles = pkgs.runCommand "install-files" {
|
||||
#inherit (pkgs) coreutils;
|
||||
} ''
|
||||
mkdir -p $out/bin
|
||||
cp -rv ${./initrd-include}/* $out/bin/
|
||||
# Add a marker file to help verify the package is being included
|
||||
echo "Install files package was built" > $out/bin/marker.txt
|
||||
mkdir -p $out
|
||||
cp -rv ${./initrd-include}/* $out/
|
||||
'';
|
||||
in
|
||||
{
|
||||
@ -22,6 +20,7 @@ in
|
||||
config = {
|
||||
services.getty.autologinUser = "nixos";
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
services.getty.loginProgram = "${installFiles}/bin/install.sh";
|
||||
users.users.nixos = {
|
||||
isNormalUser = true;
|
||||
password = "password";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user