-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 752 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 752 Bytes
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
NIX ?= nix
HOMEMANAGER ?= home-manager
WATCHEXEC ?= watchexec
SRC != find -path '*.nix' -printf '%P\n'
build:
$(HOMEMANAGER) build --flake ${CURDIR}
check:
$(NIX) flake check
watch:
$(WATCHEXEC) -e nix $(NIX) flake check
update: flake.lock
home:
$(NIX) flake update --flake ${HOME}/.config/home-manager
$(HOMEMANAGER) switch --flake ${HOME}/.config/home-manager -b hm-backup
system:
sudo $(NIX) flake update --flake /etc/nixos
sudo nixos-rebuild switch --flake /etc/nixos
format fmt:
$(NIX) fmt
flake.lock: ${SRC}
$(NIX) flake update
flake.nix:
$(NIX) flake init
p10k: # This doesn't actually work in make, but its copy-pastable
POWERLEVEL9K_CONFIG_FILE=${CURDIR}/shells/zsh/.p10k.zsh p10k configure
.PHONY: flake.lock