add devshell and justfile
This commit is contained in:
parent
a87c9565a7
commit
c31f5579d8
5 changed files with 75 additions and 21 deletions
28
justfile
Normal file
28
justfile
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Shamelessly taken from https://github.com/getchoo/flake/blob/d80d49cc7652ea84810c4688212c48277dfc71be/justfile
|
||||
|
||||
alias b := build
|
||||
alias c := check
|
||||
alias s := switch
|
||||
alias t := test
|
||||
|
||||
default:
|
||||
@just --choose
|
||||
|
||||
[linux]
|
||||
build *args:
|
||||
nixos-rebuild build --flake . {{ args }}
|
||||
nix run n#nvd -- diff /run/current-system/ result/
|
||||
|
||||
check:
|
||||
nix flake check
|
||||
|
||||
[linux]
|
||||
switch *args:
|
||||
sudo nixos-rebuild switch --flake . --keep-going {{ args }}
|
||||
|
||||
[linux]
|
||||
test:
|
||||
sudo nixos-rebuild test --flake .
|
||||
|
||||
update: (switch "--recreate-lock-file")
|
||||
nix-index
|
Loading…
Add table
Add a link
Reference in a new issue