commit a34703e514c9b0d7e25dc2b5c9d4f3540abd06a4
parent ec0ac83680466dbf4d064ded3e400a95ef53c3b9
Author: Vincent Demeester <vincent@sbr.pm>
Date: Sat, 6 Jun 2020 15:53:20 +0200
Makefile: add home-* target
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -29,7 +29,6 @@ pull:
emacs-dump:
emacs --batch -q -l ~/.config/emacs/dump.el
-# home-manager setup
.PHONY: secrets
secrets:
mkdir -p secrets
@@ -41,6 +40,14 @@ assets:
cp -Rv $(SYNCDIR)/* assets/
chown -R vincent:users assets || true
+.PHONY: home-build
+home-build: secrets
+ home-manager -f home.nix build
+
+.PHONY: home-switch
+home-switch: secrets
+ home-manager -f home.nix switch
+
.PHONY: build
build: secrets setup
./hack/system build