From a1211002710b17563cee2da343f4d205b03630b8 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 10 May 2026 19:49:56 -0700 Subject: [PATCH] Simplify just switch --- nixos/justfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/nixos/justfile b/nixos/justfile index b6c15acb..efc6efe7 100644 --- a/nixos/justfile +++ b/nixos/justfile @@ -1,14 +1,5 @@ switch *args: - bash -lc 'if systemctl is-active --quiet nixos-rebuild-switch-to-configuration.service; then \ - echo "nixos-rebuild switch already running; waiting..." >&2; \ - systemctl status nixos-rebuild-switch-to-configuration.service --no-pager >&2 || true; \ - while systemctl is-active --quiet nixos-rebuild-switch-to-configuration.service; do sleep 1; done; \ - fi; \ - env PATH=/run/wrappers/bin:$PATH sudo systemctl reset-failed nixos-rebuild-switch-to-configuration.service >/dev/null 2>&1 || true' - env PATH=/run/wrappers/bin:$PATH sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false \ - --override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \ - --override-input taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \ - {{args}} + sudo nixos-rebuild switch --flake ".#" --impure {{args}} switch-remote *args: # Switch using the remote master flake.