netboot.nix/config/initrd-include/bin/install.sh
2025-01-01 18:36:07 -05:00

12 lines
443 B
Bash

#!/run/current-system/sw/bin/bash
#storePath=$(/run/current-system/sw/bin/nix-store -q installFiles)
echo "Installing system using disco and flake"
echo "Input your sudo password when prompted"
sleep 2s
sudo -s
cd ./installer
#disko-install --disk main /dev/sda --flake $storePath/etc#zabbixProxy
nix run 'github:nix-community/disko/latest#disko-install' -- --flake './etc#zabbixProxy' --disk main /dev/sda
echo "System should be installed?"