aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKenny Ballou <kb@devnulllabs.io>2022-10-17 16:45:38 -0600
committerKenny Ballou <kb@devnulllabs.io>2022-10-17 16:46:18 -0600
commitae424be9fb4a70e78dcb384bd6210ebcfe024d1b (patch)
tree0e03b8a0b5b5cf9593958ec09c92ee6b813f3552 /Makefile
parent30e37d22db4b336515c3ea3233e2ef3978735d1d (diff)
downloaddotfiles-ae424be9fb4a70e78dcb384bd6210ebcfe024d1b.tar.gz
dotfiles-ae424be9fb4a70e78dcb384bd6210ebcfe024d1b.tar.xz
make: add `update-channels` target
Manually updating channels is boring. Borrowed from [System Crafters][0]. [0]: https://systemcrafters.net/craft-your-system-with-guix/using-package-channels/ Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index eca68b1f..9936d588 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,11 @@ pull:
news:
guix time-machine -C $(CHANNEL_FILE) -- pull --news
+.PHONY: update-channels
+update-channels:
+ guix pull --channels=$(CHANNEL_FILE)
+ guix describe --format=channels > $(CHANNEL_FILE)
+
.PHONY: reconfigure-home
reconfigure-home:
guix time-machine -C $(CHANNEL_FILE) -- home reconfigure $(RECONFIGURE_FLAGS) homes/$(HOSTNAME).scm