-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
70 lines (51 loc) · 1.68 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
58
59
60
61
62
63
64
65
66
67
68
69
70
set shell := ["fish", "-c"]
set dotenv-load := true
set positional-arguments := true
#
# set machine name in .env
# example `VM=".#vm-orb"`
alias b := build
alias pms := permissions
nom := "2>&1 | nom"
export NIXPKGS_BROKEN := "1"
export NIXPKGS_ALLOW_UNFREE := "1"
default: permissions fmt build
build:
sudo nixos-rebuild switch --flake $VM --upgrade-all --fast --print-build-logs --show-trace {{ nom }}
build-impure:
sudo nixos-rebuild switch --flake $VM --impure --fast --print-build-logs --show-trace {{ nom }}
build-no-log:
sudo nixos-rebuild switch --flake $VM {{ nom }}
upgrade:
sudo nixos-rebuild switch --flake $VM --upgrade --print-build-logs --show-trace {{ nom }}
upgrade-no-log:
sudo nixos-rebuild switch --flake $VM --upgrade {{ nom }}
upgrade-impure:
sudo nixos-rebuild switch --flake $VM --upgrade --impure --print-build-logs --show-trace {{ nom }}
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:
just --fmt --unstable
yamlfmt . --formatter
fish_indent --write **/*.fish
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 {} +
sudo find . -type f -name "._*" -exec rm -r {} +
sudo find . -type f -name "._*" -exec rm -r {} +
sudo find . -type f -name "._*" -exec rm -r {} +
sudo find . -type f -name "._*" -exec rm -r {} +
sudo find . -type f -name "._*" -exec rm -r {} +
sudo find . -type f -name "._*" -exec rm -r {} +
home-manager:
home-manager switch -b bk