-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
44 lines (32 loc) · 1.18 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
HOSTNAME = $(shell hostname)
ifndef HOSTNAME
$(error Hostname unknown)
endif
build:
nixos-rebuild build --option eval-cache false --use-remote-sudo --flake ".#${HOSTNAME}" -L --show-trace
switch:
nixos-rebuild switch --option eval-cache false --use-remote-sudo --flake ".#${HOSTNAME}" -L --show-trace
# if [ -n $(dont_use_remote) ]; then \
# echo "use remote";\
# else \
# echo "dont use remote";\
# nixos-rebuild switch --builders '' --use-remote-sudo --flake ".#${HOSTNAME}" -L --show-trace; \
# fi
boot:
nixos-rebuild boot --use-remote-sudo --flake .#${HOSTNAME} -L
test:
nixos-rebuild test --use-remote-sudo --flake .#${HOSTNAME} -L
update:
nix flake update
upgrade:
make update && make switch
iso:
nix build .#nixosConfigurations.ISO.config.system.build.isoImage --show-trace
system-vm:
nixos-rebuild build-vm --flake .#${HOSTNAME}
balodil:
nixos-rebuild build-vm --flake .#balodil
nixetcup:
nixos-rebuild switch -j auto --use-remote-sudo --build-host localhost --target-host [email protected] --flake ".#nixetcup" --show-trace
deploy-pi-mcrover:
nixos-rebuild switch -j auto --use-remote-sudo --build-host localhost --target-host [email protected] --flake ".#pi-rover"