Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
105 lines (73 loc) · 2.46 KB
/
Copy pathjustfile
File metadata and controls
105 lines (73 loc) · 2.46 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
set shell := ["zsh", "-uc"]
flake := ".#" +`hostname | tr -d .`
default:
just --list
print-flake:
echo {{ flake }}
nix-packages-tree:
nix-store -q --tree /nix/var/nix/profiles/per-user/${USER}/profile
hm-switch:
nix develop -c home-manager switch --flake {{ flake }}
hm-config-setup:
mkdir -p ~/.config/nix
ln -sfn $(PWD)/config/nix/nix.conf ~/.config/nix/nix.conf
hm-bootstrap: hm-config-setup hm-switch
hm-firstrun: hm-config-setup
nix-shell -p nixUnstable --command "nix --experimental-features 'nix-command flakes' develop -c home-manager switch --flake $(flake)"
hm-packages:
nix develop -c home-manager packages
nix-gc-30d:
nix-collect-garbage --delete-older-than 30d
# saves the most space
nix-nh-clean:
nh clean user
nix-optimise-store:
nix-store --optimise
nix-repair-store:
nix-store --verify --check-contents --repair
nix-store-size:
du -sh /nix/store
nix-install-unstable:
nix-env -f '<nixpkgs>' -iA nixUnstable
nix-reg-pin-latest-nixpkgs:
nix registry remove nixpkgs
nix registry pin flake:nixpkgs
@_nix-flake-lock:
nix flake lock
nixpkgs-update-flake: _nix-flake-lock
nix flake update nixpkgs home-manager
nix-update-safe: nix-reg-pin-latest-nixpkgs
./bin/nixpkgs-update-safe
# Refresh beads (br/bv) versions + source hashes from latest GitHub releases
bump-beads *args:
./bin/bump-beads.bb {{args}}
nix-update-safe-nixpkgs-only:
./bin/nixpkgs-update-safe --nixpkgs-only
# Run nixpkgs-update-safe tests against mocked nix, git and just
nix-update-safe-test:
#!/usr/bin/env bash
bash scripts/nixpkgs-update-safe-test.sh
nix-remove-last-skip-commit:
sed -i '$d' .nix-skip-commits
nix-check-format:
alejandra --check .
nix-format:
alejandra .
doom-update-flake: _nix-flake-lock
nix flake update doom-emacs
doom-update-sync: doom-update-flake hm-switch
doom-sync-git
doom-trash-packages:
trash ~/.emacs.d/.local/straight/
[doc("Wipe straight packages and fully resync, regenerating the envvar loader (-e) so GUI Emacs (Finder/Dock) picks up the nix PATH again.")]
doom-trash-resync: doom-trash-packages
YES=1 FORCE=1 $HOME/.emacs.d/bin/doom sync -u -e
git-submodules:
git submodule update --init
brew-bundle:
brew bundle
nix-latest-git-version:
curl -s https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/applications/version-management/git/default.nix | grep '^ version ='
save-space: nix-gc-30d nix-nh-clean
brew cleanup
doom gc