build: allow for specifying the command

This commit is contained in:
Oliver Davies 2022-10-04 07:29:34 +01:00
parent 1a0707910e
commit 7c206927dc

View file

@ -1,14 +1,14 @@
default:
just --list
apollo *args:
sudo nixos-rebuild switch --flake .#apollo {{ args }}
apollo command *args:
sudo nixos-rebuild {{ command }} --flake .#apollo {{ args }}
pop-os *args:
home-manager switch -f home-manager/home.nix --flake .#pop-os {{ args }}
pop-os command *args:
home-manager {{ command }} -f home-manager/home.nix --flake .#pop-os {{ args }}
wsl2 *args:
home-manager switch -f home-manager/home.nix --flake .#wsl2 {{ args }}
wsl2 command *args:
home-manager {{ command }} -f home-manager/home.nix --flake .#wsl2 {{ args }}
update:
nix flake update
update *args:
nix flake update {{ args }}