-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
72 lines (49 loc) · 1.65 KB
/
justfile
File metadata and controls
72 lines (49 loc) · 1.65 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
set shell := ["zsh", "-uc"]
flake := ".#" +`hostname | tr -d .`
default:
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
nix-repair-store:
nix-store --verify --check-contents --repair
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:
./bin/nixpkgs-update-safe
nix-update-safe-nixpkgs-only:
./bin/nixpkgs-update-safe --nixpkgs-only
nix-check-format:
alejandra --check **/*nix
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/
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
doom gc