-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (44 loc) · 1.22 KB
/
Makefile
File metadata and controls
66 lines (44 loc) · 1.22 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
UNAME := $(shell uname)
HOSTNAME := $(shell hostname)
home:
ifndef TARGET
home-manager switch --flake ".#${USER}@${HOSTNAME}"
else
home-manager switch --flake $(TARGET)
endif
switch:
ifeq ($(UNAME), Darwin)
echo "skipping"
else
sudo nix-collect-garbage -d
sudo nixos-rebuild switch --flake ".#" --show-trace
endif
boot:
ifeq ($(UNAME), Darwin)
echo "skipping"
else
sudo nix-collect-garbage -d
sudo nixos-rebuild boot --flake ".#"
endif
test:
ifeq ($(UNAME), Darwin)
echo "skipping"
else
sudo nixos-rebuild test --flake ".#"
endif
hetzner-switch:
nixos-rebuild switch --flake .#hetzner-cloud --target-host root@piftel.bitsikas.dev
gmktec-switch:
nixos-rebuild switch --flake .#gmktec --target-host root@100.64.0.8
pi-switch:
nixos-rebuild switch --flake .#beershot --target-host root@100.64.0.1
asus-switch:
nixos-rebuild switch --flake .#asus --target-host root@100.64.0.7
hetzner-boot:
nixos-rebuild boot --flake .#hetzner-cloud --target-host root@piftel.bitsikas.dev
gmktec-boot:
nixos-rebuild boot --flake .#gmktec --target-host root@100.64.0.8
pi-boot:
nixos-rebuild boot --flake .#beershot --target-host root@100.64.0.1
asus-boot:
nixos-rebuild boot --flake .#asus --target-host root@100.64.0.7