Should be better now after screwing up with specialisations earlier.
S3V46SMTWXBTBKVOKCWLZG6PDQ6ODP7NNT5SWFS6D6BBAPY65OOQC HNASWHQYV237BFQZ2H7LO76APITXXWFIPTH4N4HXQPLTSWENPBGQC 3JRUTC653DE7TT2LWTTXOG4YT6ZGVBS67T4Y67D4HHVDMRSQ33KQC 5G7WRBMWKG6DMCOHE6WQHTYZACUHO2UPBZRWN72CFH7P45NN5E7QC KYPDLOMFTH6IETNNZ7FS7HYAXPAGST2ROBO4ENGR4UYSG3PQNBXQC 4DJCBLW3CFDQPY3CBDTZAE7URHA4QP2F6XGVOKHNM3SI5O55WU2AC QRPPLHLL6YZU3Z35JNJFXHMBY3BX4THHN4AMWDFCUSFHYAHWTRHAC 4NRVIEMX33UUJASFFO4JXHNPN3EY3VB7K2FZXJVQGZMCAKEMXGYQC print $"[Rebuild]: ($message)"if (which dunstify | is-not-empty) {let base_args = ["--appname=Rebuild" "--replace=1001"]let args = if $progress >= 0 {$base_args | append ["--hints" $"int:value:($progress)"]} else {$base_args}
print $"(ansi purple)[Rebuilder] ($message)"if (which dunstify | is-not-empty) {let base_args = ["--appname=Rebuilder" "--replace=1003"]let args = if $progress >= 0 {$base_args | append ["--hints" $"int:value:($progress)"]} else {$base_args}# Use persistent notifications (timeout=0) when in-progress.# Use short timeout for completion messages (progress=100).let timeout = if $progress >= 0 and $progress < 100 { 0 } else { 15000 }
if ($message | str downcase | str contains "error") {^dunstify ...$args --urgency=critical --timeout=30000 "Error" $"($message)"} else {^dunstify ...$args "Status" $"($message)"}
if ($message | str downcase | str contains "error") {^dunstify ...$args --urgency=critical --timeout=30000 "Error" $"($message)"} else {^dunstify ...$args --urgency=normal --timeout=($timeout) "Status" $"($message)"
# Execute nh command.# Execute build and activation.let action = if $remote { $"Deploying to ($host): " } else { "Building locally:" }
# Execute final command.let action = if $remote { $"Deploying to: ($host)" } else { "Building locally:" }
try {print-notify "Starting remote build..." 25NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh $command ...$final_args} catch { |e|print-notify "An error occurred during the rebuild. Run `rebuild` manually."exit 1}
NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh $command ...$final_args
try {sudo NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh $command ...$final_args} catch { |e|print-notify "An error occurred during the rebuild. Run `rebuild` manually."}
sudo NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh $command ...$final_args