feat: sydnix rebuild will exit with exit code of nixos-rebuild

This commit is contained in:
Madeleine Sydney
2025-01-24 18:09:37 -07:00
parent 98750d3707
commit 83a37f2288

View File

@@ -16,7 +16,9 @@
(or args ["switch"])
["--flake" (:flake opts)])]
(apply println "$" rebuild-cmd)
(apply p/shell {:continue true} rebuild-cmd)))
(-> (apply p/shell {:continue true} rebuild-cmd)
:exit
System/exit)))
(def commands
[{:cmds ["rebuild"]