From 5209b73bdc22efd721143377c5c2f0326830d56a Mon Sep 17 00:00:00 2001 From: Richard Mauer Date: Mon, 30 Dec 2024 21:28:56 -0500 Subject: [PATCH] update path again, add getty program --- config/base.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/base.nix b/config/base.nix index 233ac6f..11406c0 100644 --- a/config/base.nix +++ b/config/base.nix @@ -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";