-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 905 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
38
39
40
41
42
43
44
45
46
47
48
HOST = $(shell uname -n)
install:
ifeq ($(HOST), domum)
cd nix/nixos/domum; make upgrade; make copy-grub-theme
endif
ifeq ($(HOST), milkyway)
cd nix/nixos/milkyway; make upgrade; make copy-grub-theme
endif
ifeq ($(HOST), luna)
cd nix/luna; make install
endif
rebuild:
ifeq ($(HOST), domum)
cd nix/nixos/domum; make rebuild
endif
ifeq ($(HOST), milkyway)
sudo nixos-rebuild switch --flake .#milkyway --show-trace
endif
ifeq ($(HOST), luna)
cd nix/luna; make rebuild
endif
update:
ifeq ($(HOST), domum)
cd nix/nixos/domum; make update
endif
ifeq ($(HOST), milkyway)
cd nix/nixos/milkyway; make update
endif
ifeq ($(HOST), luna)
cd nix/luna; make update
endif
upgrade: update rebuild
clear-cache:
nix-store --gc
clear-all-old-generations:
sudo nix-collect-garbage -d
update-theme-var:
./scripts/variable_nix_update.sh
copy-grub-theme:
sudo cp -r -u ./grub/hyperfluent /boot/grub/themes