-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
34 lines (26 loc) · 718 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
_default:
just --list
check:
nix flake check
fmt:
nix fmt flake.nix lib
nixos-build *args:
sudo nixos-rebuild build --flake . {{ args }}
nixos-switch *args:
sudo nixos-rebuild switch --flake . {{ args }}
nixos-test *args:
sudo nixos-rebuild test --flake . {{ args }}
update:
nix flake update
wsl-build:
NIXPKGS_ALLOW_UNFREE=1 home-manager build \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
--flake ".#wsl2" \
--impure
wsl-switch:
NIXPKGS_ALLOW_UNFREE=1 home-manager switch \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
--flake ".#wsl2" \
--impure