default: @just --list action target action: git add . && nix develop --command rui --allow-unfree --allow-insecure {{target}} {{action}} -- --impure build target: just action {{target}} build switch target: just action {{target}} switch news user='ebisu': rui home news --user {{user}} -- --impure check: nix develop --command nix flake check push message: git add . && git commit -m "{{message}}" && git push origin main commit message: git add . && git commit -m "{{message}}" restore: git restore --staged . && git restore . deploy hostname user='root': git add . && nixos-rebuild \ --flake .#{{hostname}} \ --target-host {{user}}@{{hostname}} \ --use-remote-sudo \ switch provision ip hostname: doas nix run github:nix-community/nixos-anywhere \ -- \ --flake .#{{hostname}} root@{{ip}}