Add just and justfile
This commit is contained in:
parent
bdd33ac0e5
commit
73bd2e0bda
2 changed files with 18 additions and 0 deletions
|
@ -28,6 +28,10 @@
|
||||||
self',
|
self',
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
packages.default = pkgs.mkShell {
|
||||||
|
nativeBuildInputs = [pkgs.just];
|
||||||
|
};
|
||||||
|
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.alejandra;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
14
justfile
Normal file
14
justfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
_default:
|
||||||
|
just --list
|
||||||
|
|
||||||
|
check:
|
||||||
|
nix flake check
|
||||||
|
|
||||||
|
nixos-build profile:
|
||||||
|
sudo nixos-rebuild build --flake ".#{{ profile }}"
|
||||||
|
|
||||||
|
nixos-switch profile:
|
||||||
|
sudo nixos-rebuild switch --flake ".#{{ profile }}"
|
||||||
|
|
||||||
|
update:
|
||||||
|
nix flake update
|
Loading…
Add table
Add a link
Reference in a new issue