-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
47 lines (36 loc) · 948 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
44
45
46
47
update hostname:
nix flake update
git add flake.lock
just {{hostname}}
git commit -m "build(flake.lock): update dep"
legion:
sudo nixos-rebuild switch --flake .#legion
rm -rf result
legion-test:
sudo nixos-rebuild build --flake .#legion --impure
rm -rf result
ubuntu-vm:
home-manager switch --flake .#ubuntu-vm
rm -rf result
neovim:
nix run .#neovim
legion-push:
cachix watch-exec adgai19 -- sudo nixos-rebuild switch --flake .#legion --impure
rm -rf result
ubuntu-vm-push:
cachix watch-exec adgai19 -- home-manager build --flake .#ubuntu-vm
rm -rf result
statix:
statix check .
nixfmt:
fd --extension nix -x nixpkgs-fmt
stylua:
fd --extension lua -x stylua
fix: && statix nixfmt stylua
echo "getting ready to push"
neovim-push:
cachix watch-exec adgai19 -- nix run .#neovim
neovim-cachix:
nix build --json .#neovim\
| jq -r '.[].outputs | to_entries[].value' \
| cachix push adgai19