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" {
|
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";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user