update makefile

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-20 18:45:12 +03:00
parent d46465a4d3
commit 52c76bbe6a
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -1,17 +1,15 @@
NIX_RUN := nix run .\#
NIX_LOCK := nix flake lock
DEPS_MY := \
DEPS_EDITOR := \
nixeovim
DEPS_NIXOS := \
DEPS_SYSTEM := \
nixpkgs \
nixpkgs-unstable \
hardware \
home-manager \
agenix
DEPS_MISC := \
agenix \
wired \
nil
@ -56,17 +54,13 @@ rollback:
################################################################################
.PHONY: deps-my
deps-my:
$(NIX_LOCK) $(foreach dep,$(DEPS_MY),--update-input $(dep))
deps-editor:
$(NIX_LOCK) $(foreach dep,$(DEPS_EDITOR),--update-input $(dep))
.PHONY: deps-nixos
deps-nixos:
$(NIX_LOCK) $(foreach dep,$(DEPS_NIXOS),--update-input $(dep))
.PHONY: deps-misc
deps-misc:
$(NIX_LOCK) $(foreach dep,$(DEPS_MISC),--update-input $(dep))
deps-system:
$(NIX_LOCK) $(foreach dep,$(DEPS_SYSTEM),--update-input $(dep))
.PHONY: deps
deps: deps-my deps-nixos deps-misc ;
deps: deps-editor deps-system ;