modified: installer.nix
This commit is contained in:
+9
-9
@@ -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
|
||||||
sudo /etc/auto-install.sh
|
if [ -n "$PS1" ] && [ ! -e ~/.auto_install_ran ]; then
|
||||||
mv ~/.bash_profile ~/.bash_profile.done 2>/dev/null || true
|
sudo /etc/auto-install.sh
|
||||||
exit
|
touch ~/.auto_install_ran
|
||||||
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";
|
||||||
|
|||||||
Reference in New Issue
Block a user