-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (33 loc) · 810 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
SHELL := bash
# --- Home manager
# HMCONFIG := ${USER}@$(shell uname -m -s | tr ' ' '-')
#
# .PHONY: switch
# switch:
# @mkdir -p ~/.local/state/nix/profiles
# @if command -v home-manager >/dev/null 2>&1; then\
# home-manager switch --flake .#$(HMCONFIG);\
# else\
# nix run nixpkgs#home-manager switch -- --flake .#$(HMCONFIG);\
# fi
#
# .PHONY: news
# news:
# @mkdir -p ~/.local/state/nix/profiles
# @if command -v home-manager >/dev/null 2>&1; then\
# home-manager news --flake .#$(HMCONFIG);\
# else\
# nix run nixpkgs#home-manager news -- --flake .#$(HMCONFIG);\
# fi
# --- Bootstrap
.PHONY: bootstrap
bootstrap:
./bootstrap.sh
.PHONY: shell
shell:
./bootstrap.sh shell
./bootstrap.sh shell-private
.PHONY: scripts
scripts:
./bootstrap.sh scripts
./bootstrap.sh scripts-private