From 910b51f873ac681c03931c56218165cba40e8d97 Mon Sep 17 00:00:00 2001 From: triethyl Date: Wed, 3 Dec 2025 13:35:43 -0500 Subject: home-manager: fixed rebuild loop tool --- docs/todo.md | 2 -- home-manager/features/gui/desktops/niri/parts/selectors.nix | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/todo.md b/docs/todo.md index 42d6d52..cfaa03b 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -5,9 +5,7 @@ ## Todo - make keyboard layout switchable -- remove syncthing waybar component - find a password manager -- make rebuild tool prompt after failure - make office, coding, art, video, and gamedev bundles. ## Issues diff --git a/home-manager/features/gui/desktops/niri/parts/selectors.nix b/home-manager/features/gui/desktops/niri/parts/selectors.nix index 8cfc087..017314b 100644 --- a/home-manager/features/gui/desktops/niri/parts/selectors.nix +++ b/home-manager/features/gui/desktops/niri/parts/selectors.nix @@ -12,8 +12,12 @@ in { config = lib.mkIf cfg.enable { home.packages = with pkgs; [ # Rebuild Loops - (pkgs.writers.writeNuBin "os-rebuild-loop" ''nh os switch; while true {let continue = input "Rebuild? [Y/n] "; if (($continue | str downcase) == "y" or $continue == "") {nh os switch} else {break}}'') - (pkgs.writers.writeNuBin "home-rebuild-loop" ''nh home switch; while true {let continue = input "Rebuild? [Y/n] "; if (($continue | str downcase) == "y" or $continue == "") {nh home switch} else {break}}'') + (pkgs.writers.writeNuBin "os-rebuild-loop" '' + try {nh os switch} ; while true {let continue = input "Rebuild? [Y/n] "; if (($continue | str downcase) == "y" or $continue == "") {try {nh os switch}} else {break}} + '') + (pkgs.writers.writeNuBin "home-rebuild-loop" '' + try {nh home switch} ; while true {let continue = input "Rebuild? [Y/n] "; if (($continue | str downcase) == "y" or $continue == "") {try {nh home switch}} else {break}} + '') # Tool Selector ( -- cgit v1.2.3