Commit bc3eb0311dd3

Vincent Demeester <vincent@sbr.pm>
2025-11-18 22:26:03
chore: Enhance Makefile with dots target and improve host detection
- Add dots target for convenient dotfiles management access - Fix HOSTS detection with --all-systems flag and error suppression - Clean up formatting in dots/Makefile Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent b59903c
Changed files (2)
dots/Makefile
@@ -14,7 +14,6 @@ endef
 
 rule.define = $(eval $(call rule.template,$(1),$(2)))
 
-
 $(call rule.define,~,$(~))
 
 all += niri
Makefile
@@ -1,5 +1,5 @@
 # Makefile for home
-HOSTS          = $(shell nix flake show --json | yq '.nixosConfigurations.[] | key')
+HOSTS          = $(shell nix flake show --json --all-systems 2>/dev/null | yq '.nixosConfigurations.[] | key')
 HOSTS_BUILD    = $(addprefix host/, $(addsuffix /build,$(HOSTS)))
 
 .PHONY: all
@@ -65,6 +65,11 @@ pre-commit: fmt
 fmt:
 	nixfmt-plus
 
+# Dotfiles
+.PHONY: dots
+dots:
+	@$(MAKE) -C dots
+
 # Maintenance
 .PHONY: clean
 clean: clean-system clean-results