Simplify just switch

This commit is contained in:
2026-05-10 19:49:56 -07:00
parent 45c85fae55
commit a121100271

View File

@@ -1,14 +1,5 @@
switch *args: switch *args:
bash -lc 'if systemctl is-active --quiet nixos-rebuild-switch-to-configuration.service; then \ sudo nixos-rebuild switch --flake ".#" --impure {{args}}
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}}
switch-remote *args: switch-remote *args:
# Switch using the remote master flake. # Switch using the remote master flake.