guix-store := /gnu/store
guix-version := $(shell guix show guix | sed -n '/^version/s/^.*: //gp')
-home-nonfree:
- GUIX_PACKAGE_PATH=`pwd` PROFILE=nonfree guix home reconfigure home.scm
+.PHONY: stop-home-services
+stop-home-services:
+ @for svc in claude-proxy paseo-daemon; do \
+ ~/.guix-home/profile/bin/herd stop "$$svc" 2>/dev/null \
+ && echo "Stopped $$svc." \
+ || echo "Service $$svc is not running (or not known)."; \
+ done
+
+home-nonfree: stop-home-services
+ $(guix-env) GUIX_PACKAGE_PATH=$(CURDIR) PROFILE=nonfree \
+ guix home reconfigure home.scm
. $(guix-profile)/etc/profile
-home-libre:
- GUIX_PACKAGE_PATH=`pwd` PROFILE=libre guix home reconfigure home.scm
+home-libre: stop-home-services
+ $(guix-env) GUIX_PACKAGE_PATH=$(CURDIR) PROFILE=libre \
+ guix home reconfigure home.scm
. $(guix-profile)/etc/profile
system-nonfree:
system-libre:
sudo GUIX_PACKAGE_PATH=`pwd` PROFILE=libre guix system reconfigure system.scm
-vps-home:
- GUIX_PACKAGE_PATH=`pwd` guix home reconfigure \
- -L `pwd` -e '(@ (vps-home) vps-home-environment)'
+vps-home: stop-home-services
+ $(guix-env) GUIX_PACKAGE_PATH=$(CURDIR) guix home reconfigure \
+ -L $(CURDIR) -e '(@ (vps-home) vps-home-environment)' \
+ --substitute-urls="https://substitutes.nonguix.org https://bordeaux.guix.gnu.org https://ci.guix.gnu.org"
. $(guix-profile)/etc/profile
vps-system: