5BHIHEZYYNTL3XVMDYRYUGB5RCCV6D7BDNEDS6PA4LIYVCZKDOJAC if not $quiet { print-notify $"Removing old configuration files on ($target)." }ssh -qtt $"jam@($target)" "rm --recursive --force nixos" | complete
if not $quiet { print-notify $"Copying new configuration files to ($target)." }jj file list | rsync-files --files-from - ./ $"jam@($target):nixos" | complete
if not $quiet { print-notify $"Copying new configuration files to ($target)." }jj file list | rsync-files --files-from - ./ $"jam@($target):nixos" | complete
if not $quiet { print-notify $"Starting rebuild on ($target)." }ssh -qtt $"jam@($target)" ./nixos/rebuild.nu | complete
match $result.exit_code {0 => { print-notify $"Rebuild for ($target) succeeded." }_ => {print-notify $"Rebuild for ($target) failed."print-notify $"Error: ($result)"}
if $result {print-notify $"Rebuild for ($target) succeeded."} else {print-notify $"Rebuild for ($target) failed."