attempting to add NAS drive connection as automount systemd service

This commit is contained in:
2026-07-23 06:11:33 -06:00
parent a3be54e03a
commit f85882f944
10 changed files with 112 additions and 2 deletions
+8 -2
View File
@@ -1,4 +1,4 @@
STOW_TARGET := $(HOME)
HOME_TARGET := $(HOME)
.PHONY: check-stow
check-stow:
@@ -47,5 +47,11 @@ link: check-stow
@for pkg in *; do \
[ -d "$$pkg" ] || continue; \
echo "📦 stowing $$pkg"; \
stow -R "$$pkg" -t "$(STOW_TARGET)" --adopt; \
if [ -d "$$pkg/etc" ] || [ -d "$$pkg/usr" ] || [ -d "$$pkg/mnt" ]; then \
echo "[System] Stowing '$$pkg' to /..."; \
sudo stow -R "$$pkg" -t / --adopt; \
else \
echo "[User] Stowing '$$pkg' to $(HOME_TARGET)..."; \
stow -R "$$pkg" -t "$(HOME_TARGET)" --adopt; \
fi; \
done