From 418ec7b94aa8202e5f5f0a59f2bb97a7c0510068 Mon Sep 17 00:00:00 2001 From: Kenny Ballou Date: Wed, 14 Oct 2020 10:05:44 -0600 Subject: dots: now for something completely different Use home-manager to configure user packages, dotfiles, and various other configurations. Add home-manager configuration for installing and managing user packages and profiles. Convert nearly all configuration to use home-manager to install and link configuration files. In no particular order of reference, I've used and/or referenced the following configurations and posts for this homeification: [[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10]]. [0]: https://gitlab.com/NobbZ/nix-home-manager-dotfiles [1]: https://www.malloc47.com/migrating-to-nixos/ [2]: https://lucperkins.dev/blog/home-manager/ [3]: https://github.com/jwiegley/nix-config [4]: https://www.thedroneely.com/posts/declarative-user-package-management-in-nixos/ [5]: https://hugoreeves.com/posts/2019/nix-home/ [6]: https://rycee.gitlab.io/home-manager/ [7]: https://rycee.net/posts/2017-07-02-manage-your-home-with-nix.html [8]: https://github.com/abcdw/rde [9]: https://github.com/ryantm/dotfiles [10]: https://git.sr.ht/~vdemeester/home Signed-off-by: Kenny Ballou --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..03929d2e --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +NIX_FILES = $(shell find . name -name '*.nix' -type f) +MAX_AGE=14d + +.PHONY: all +all: build + +.PHONY: news +news: + nix-shell --run "home-manager news" + +.PHONY: build +build: + nix-shell --run "home-manager build" + +.PHONY: switch +switch: + nix-shell --run "home-manager switch" + +.PHONY: clean +clean: + -rm -rv result + -nix-collect-garbage --delete-older-than $(MAX_AGE) -- cgit v1.2.1