modified: installer.nix

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