-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
30 lines (22 loc) · 897 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
export NIXPKGS_ALLOW_UNFREE := "1"
CACHIX_CACHE := "d2kdot"
update-flake:
nix flake lock --update-input nixpkgs
update-neovim-nightly:
nix flake lock --update-input neovim-nightly-overlay
build-flake:
nix build .#d2common --impure
push-cachix:
@echo "Pushing to cachix..."
@( [ -f .push-cachix ] && cachix push {{CACHIX_CACHE}} $(readlink -f ./result) ) || \
echo "NOTE: Not pushing to cachix, enable with \`touch .push-cachix\`"
install-flake: build-flake && push-cachix
nix profile remove d2common && nix profile install .#d2common --impure --priority 100
build-install-gui: && push-cachix # TODO: config-driven integration with `install-flake`
nix build .#d2gui --impure
nix profile remove d2gui && nix profile install .#d2gui --impure
./scripts/link-nix-apps.sh
update: build-flake install-flake
topgrade
cleanup: # Clean up old nix artifacts
nix-store --gc