Add just and justfile

This commit is contained in:
Oliver Davies 2024-02-24 10:21:53 +00:00
parent bdd33ac0e5
commit 73bd2e0bda
2 changed files with 18 additions and 0 deletions

View file

@ -28,6 +28,10 @@
self',
...
}: {
packages.default = pkgs.mkShell {
nativeBuildInputs = [pkgs.just];
};
formatter = pkgs.alejandra;
};

14
justfile Normal file
View 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