modified: installer.nix

This commit is contained in:
2025-07-21 13:11:30 +10:00
parent 860053235e
commit 3934d53033
+6 -6
View File
@@ -53,15 +53,15 @@ environment.etc."git-credentials".text =
''; '';
environment.etc."auto-install.sh".mode = "0755"; environment.etc."auto-install.sh".mode = "0755";
environment.etc."nixos/.bash_profile".text = '' # Trigger the script from nixos user's shell
if [[ $- == *i* ]]; then environment.etc."nixos/.bashrc".text = ''
echo "Launching installer script..." # Run installer only once
if [ -n "$PS1" ] && [ ! -e ~/.auto_install_ran ]; then
sudo /etc/auto-install.sh sudo /etc/auto-install.sh
mv ~/.bash_profile ~/.bash_profile.done 2>/dev/null || true touch ~/.auto_install_ran
exit
fi fi
''; '';
environment.etc."nixos/.bash_profile".mode = "0755"; environment.etc."nixos/.bashrc".mode = "0755";
# systemd.services.autoInstallInteractive = { # systemd.services.autoInstallInteractive = {
# description = "Interactive NixOS installer on tty1"; # description = "Interactive NixOS installer on tty1";