Simplify just switch
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user