-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
43 lines (34 loc) · 815 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# list recipes
help:
just --list
now := `date +"%Y-%m-%d_%H.%M.%S"`
hostname := lowercase(`uname -n`)
# echo hostname (uname -n)
echo:
@echo "{{ hostname }}"
# Update the flake lock file
update:
nix flake update
# Update the configuration using home-manager (non-nixos or WSL)
home-manager:
home-manager switch --flake .#{{ hostname }}
# garbage collect
gc:
nix-store --gc
# Lint all files (similar to GitHub Actions), setup nix-shell
lint:
nix develop --accept-flake-config .#lint
# format all the files, when in a nix-shell
format:
nixpkgs-fmt .
# check all files (similar to GitHub Actions), when in a nix-shell
check:
actionlint
yamllint .
selene .
stylua --check .
statix check
nixpkgs-fmt --check .
# Check flake evaluation
flake:
nix flake check --no-build --all-systems