From: Samir Benmendil Date: Sat, 11 Mar 2023 18:05:20 +0000 (+0000) Subject: systemd: copy systemd system files into etc X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/5067f35853f3ab0b02cc9c15760b597eb2b78127 systemd: copy systemd system files into etc --- diff --git a/Makefile b/Makefile index 2fc6f2c..c5a8d99 100644 --- a/Makefile +++ b/Makefile @@ -117,8 +117,9 @@ ssh: ln -sfT $(APATH)/ssh/config ~/.ssh/config .PHONY: ssh +# copy system files, do not link, it doesn't work if home is encrypted /etc/systemd/system/%: systemd/system/% - sudo ln -s $(APATH)/$< $@ + sudo cp $(APATH)/$< $@ systemd_system_units := $(patsubst %,/etc/%,$(wildcard systemd/system/*)) systemd: $(XDG_CONFIG_HOME) $(systemd_system_units)