2024-03-15 01:28:56 +00:00
|
|
|
switch *args:
|
2026-02-20 01:45:59 -08:00
|
|
|
sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false {{args}}
|
|
|
|
|
|
|
|
|
|
switch-remote *args:
|
|
|
|
|
# Switch using the remote master flake.
|
2026-02-17 17:38:53 -08:00
|
|
|
sudo nixos-rebuild switch --flake "git+https://github.com/colonelpanic8/dotfiles.git?ref=master&dir=nixos#" --impure --option warn-dirty false {{args}}
|
2024-03-15 01:28:56 +00:00
|
|
|
|
2026-02-18 12:48:13 -08:00
|
|
|
switch-local *args:
|
2026-02-20 01:45:59 -08:00
|
|
|
# Backwards-compat alias for local switch.
|
2026-02-18 12:48:13 -08:00
|
|
|
sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false {{args}}
|
|
|
|
|
|
2026-02-13 02:05:04 -08:00
|
|
|
switch-local-taffybar *args:
|
2026-02-20 01:45:59 -08:00
|
|
|
# Like `switch-remote`, but use the local taffybar checkout (useful when hacking on it).
|
2026-02-13 02:05:04 -08:00
|
|
|
# Note: requires the submodule/checkout to exist at ../dotfiles/config/taffybar/taffybar.
|
|
|
|
|
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'
|
2026-03-30 12:36:22 -07:00
|
|
|
sudo env IMALISON_TAFFYBAR_LIVE_CHECKOUT=/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \
|
|
|
|
|
nixos-rebuild switch --flake "git+https://github.com/colonelpanic8/dotfiles.git?ref=master&dir=nixos#" --impure --option warn-dirty false \
|
2026-03-21 12:01:11 -07:00
|
|
|
--override-input taffybar git+file:///home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \
|
2026-02-13 02:05:04 -08:00
|
|
|
{{args}}
|
|
|
|
|
|
2026-02-09 21:15:50 -08:00
|
|
|
remote-switch host *args:
|
2026-02-17 17:38:53 -08:00
|
|
|
nixos-rebuild switch --flake "git+https://github.com/colonelpanic8/dotfiles.git?ref=master&dir=nixos#{{host}}" --target-host {{host}}.local --sudo --impure --option warn-dirty false {{args}}
|
2026-02-09 21:15:50 -08:00
|
|
|
|
2024-03-15 01:28:56 +00:00
|
|
|
fix-local-path-issue:
|
2026-02-13 02:05:04 -08:00
|
|
|
# Kept for backwards-compat: update the lockfile inputs explicitly.
|
|
|
|
|
nix flake update taffybar imalison-taffybar
|