-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (35 loc) · 1.17 KB
/
Makefile
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
flake := '.\#'`hostname | tr -d .`
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
nixpkgs-update-flake:
nix flake lock --update-input nixpkgs
nix flake lock --update-input home-manager
nix-fix-zshrc:
./bin/nix-fix-zshrc
doom-update-flake:
nix flake lock --update-input 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