commit c671360aa7f122d4707c08e749767bd7a2599a50 parent e56795b68a23da2ab3df0120f66adfbcd6ff657e Author: Vincent Demeester <vincent@sbr.pm> Date: Fri, 5 Jul 2019 17:30:20 +0200 Add a Makefile Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | .gitignore | | | 5 | +++-- |
A | Makefile | | | 17 | +++++++++++++++++ |
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -1,4 +1,5 @@ *~ result home.nix -*.retry- \ No newline at end of file +*.retry +assets/machines.nix+ \ No newline at end of file diff --git a/Makefile b/Makefile @@ -0,0 +1,17 @@ +all: build + +.PHONY: update +update: + nix-channel --update + +.PHONY: assets +assets: + cp -Rv ~/sync/nixos/machines.nix assets/ + +.PHONY: build +build: assets + home-manager build + +.PHONY: switch +switch: assets + home-manager switch