-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
37 lines (29 loc) · 848 Bytes
/
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
ROOT := /mnt
HOST := ni
.PHONY: install
install:
nixos-install --flake ".#${HOST}" --root ${ROOT}
.PHONY: switch
switch:
nixos-rebuild --flake ".#${HOST}" switch
.PHONY: test
test:
nixos-rebuild --flake ".#${HOST}" dry-activate
.PHONY: update
update:
git checkout -- flake.lock
nix flake update --commit-lock-file
.PHONY: update_with_forked_inputs
update_with_forked_inputs:
nix flake lock \
--override-input guix-overlay git+file:///home/foo-dogsquared/library/projects/software/nix-overlay-guix/ \
--override-input dotfiles git+file:///home/foo-dogsquared/library/dotfiles/
.PHONY: docs-serve
docs-serve:
nix develop '.#docs' --impure -c hugo -s ./docs serve
.PHONY: docs-build
docs-build:
nix develop '.#docs' --impure -c hugo -s ./docs/
.PHONY: deploy
deploy:
nix develop --impure -c deploy '.#nixos-${HOST}' --skip-checks