2024-09-30 01:00:16 +02:00
|
|
|
# Dotfiles config repo (neovim, bash, git, sway ...)
|
|
|
|
|
2024-09-30 14:25:12 +02:00
|
|
|
Save this service config to `$XDG_CONFIG_HOME/systemd/user/dotfiles.service`:
|
2024-09-30 01:00:16 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
[Unit]
|
|
|
|
Description=Stow dotfile linker
|
|
|
|
Documentation=man:stow(1)
|
|
|
|
Before=wayland-session.target
|
|
|
|
Conflicts=wayland-session.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
WorkingDirectory=%h/dev/dotfiles
|
|
|
|
RemainAfterExit=true
|
2024-09-30 01:47:02 +02:00
|
|
|
ExecStart=/usr/bin/stow --target=%h --adopt dotfiles/
|
2024-09-30 01:00:16 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|
|
|
|
```
|
|
|
|
|
2024-09-30 01:47:02 +02:00
|
|
|
(and enable it:)
|
2024-09-30 01:00:16 +02:00
|
|
|
|
|
|
|
```sh
|
|
|
|
systemctl --user enable --now dotfiles.service
|
|
|
|
```
|