commit 8b281dbbceca37187e4f5152621dbc085fb35164 parent fbc6498c848257a5f72d6057d1c3378ff8e1c756 Author: Vincent Demeester <vincent@sbr.pm> Date: Mon, 13 Apr 2020 20:49:43 +0200 machine/base: add a home Makefile Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
A | assets/Makefile | | | 20 | ++++++++++++++++++++ |
M | machines/base.nix | | | 1 | + |
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/assets/Makefile b/assets/Makefile @@ -0,0 +1,20 @@ +RH_VPN := $(shell command -v redhat-vpn 2> /dev/null) + +.PHONY: vpn +vpn: $(RH_VPN) + redhat-vpn + +.PHONY: build +build: ./src/home/Makefile + make -C ./src/home build + +.PHONY: update +update: ./src/home/Makefile + make -C ./src/home switch + +.PHONY: pull +pull: ./src/home/Makefile + make -C ./src/home pull + +.PHONY: upgrade +upgrade: pull update diff --git a/machines/base.nix b/machines/base.nix @@ -7,6 +7,7 @@ }; }; home.file.".nix-channels".source = ../assets/nix-channels; + home.file."Makefile".source = ../assets/Makefile; home.packages = with pkgs; [ direnv enchive