-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (33 loc) · 1.12 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
.PHONY: home
home: .git/hooks/pre-commit
@./scripts/ensure-channel.sh
nix run home-manager/release-24.05 -- switch --flake .#${EVERTRAS_USER_PROFILE} --show-trace
.PHONY: home-news
home-news: .git/hooks/pre-commit
home-manager news --flake .#${EVERTRAS_USER_PROFILE}
.PHONY: system
system: .git/hooks/pre-commit
@./scripts/ensure-passwords.sh
@./scripts/ensure-channel.sh
sudo nixos-rebuild switch --flake .
# Starts a local VM with the vm-playground configuration.
# Log in with evertras/evertras.
.PHONY: playground
playground: .git/hooks/pre-commit
rm -f nixbox-playground.qcow2 && nix run '.#nixosConfigurations.vm-playground.config.system.build.vm'
.PHONY: clean-home
clean-home: .git/hooks/pre-commit
nix-collect-garbage -d
.PHONY: clean-system
clean-system: .git/hooks/pre-commit
sudo nix-collect-garbage -d
sudo nixos-rebuild boot --flake .
.PHONY: fmt
fmt: .git/hooks/pre-commit
@nixfmt .
.PHONY: update-fonts
update-fonts: .git/hooks/pre-commit
nix flake lock --update-input ever-fonts
.git/hooks/pre-commit: .evertras/pre-commit.sh
cp .evertras/pre-commit.sh .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit