modified: installer.nix
This commit is contained in:
+7
-7
@@ -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..."
|
||||
# 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
|
||||
mv ~/.bash_profile ~/.bash_profile.done 2>/dev/null || true
|
||||
exit
|
||||
touch ~/.auto_install_ran
|
||||
fi
|
||||
'';
|
||||
environment.etc."nixos/.bash_profile".mode = "0755";
|
||||
'';
|
||||
environment.etc."nixos/.bashrc".mode = "0755";
|
||||
|
||||
# systemd.services.autoInstallInteractive = {
|
||||
# description = "Interactive NixOS installer on tty1";
|
||||
|
||||
Reference in New Issue
Block a user