-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
57 lines (39 loc) · 1.14 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
set shell := ["fish", "-c"]
set dotenv-load := true
set positional-arguments := true
alias b := build
alias pms := permissions
export VM := ".#vm-orb"
export NIXPKGS_BROKEN := "1"
export NIXPKGS_ALLOW_UNFREE := "1"
default: permissions fmt build
build:
sudo nixos-rebuild switch --flake $VM --print-build-logs --show-trace
build-impure:
sudo nixos-rebuild switch --flake $VM --impure --print-build-logs --show-trace
build-no-log:
sudo nixos-rebuild switch --flake $VM
upgrade:
sudo nixos-rebuild switch --flake $VM --upgrade --print-build-logs --show-trace
upgrade-no-log:
sudo nixos-rebuild switch --flake $VM --upgrade
upgrade-impure:
sudo nixos-rebuild switch --flake $VM --upgrade --impure --print-build-logs --show-trace
remove-fonts:
sudo rm -rf /etc/fonts
lockup:
nix flake update
sudo-lockup:
sudo nix flake update
lint:
deadnix --no-lambda-pattern-names && statix check .
fmt:
nixfmt *.nix **/*.nix **/**/*.nix --width=100
fml: fmt lint
permissions:
sudo chown -R $USER .
[group('cleanup')]
rm-dots:
sudo find . -type f -name "._*" -exec rm -r {} +
home-manager:
home-manager switch -b bk