netboot.nix/config/initrd-include/bin/install.sh

9 lines
374 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"
#disko-install --disk main /dev/sda --flake $storePath/etc#zabbixProxy
nix run 'github:nix-community/disko/latest#disko-install' -- --flake '$storePath/etc#zabbixProxy' --disk main /dev/sda
echo "System should be installed?"