mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Enable new Archlinux profile for nymph
This commit is contained in:
14
dotfiles/desktop/.config/systemd/user/emacs.service
Normal file
14
dotfiles/desktop/.config/systemd/user/emacs.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Emacs daemon
|
||||
After=ssh-agent.service
|
||||
Wants=ssh-agent.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=SSH_AUTH_SOCK=%h/.local/state/ssh-agent/socket
|
||||
WorkingDirectory=%h
|
||||
ExecStart=/usr/bin/emacs --fg-daemon
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
12
dotfiles/desktop/.config/systemd/user/rclone-pcloud.service
Normal file
12
dotfiles/desktop/.config/systemd/user/rclone-pcloud.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Mount pCloud remote with rclone
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/bin/sh -lc 'mkdir -p "$HOME/.cache/rclone/pcloud" "$HOME/Remotes/pCloud"; mountpoint -q "$HOME/Remotes/pCloud" && exit 0; exec /usr/bin/rclone mount pcloud: "$HOME/Remotes/pCloud" --config "$HOME/.config/rclone/rclone.conf" --cache-dir "$HOME/.cache/rclone/pcloud" --vfs-cache-mode writes --dir-cache-time 10m --poll-interval 1m --log-level INFO'
|
||||
ExecStop=/bin/sh -lc 'mountpoint -q "$HOME/Remotes/pCloud" && exec /usr/bin/fusermount3 -u "$HOME/Remotes/pCloud" || exit 0'
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
13
dotfiles/desktop/.config/systemd/user/ssh-agent.service
Normal file
13
dotfiles/desktop/.config/systemd/user/ssh-agent.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=SSH key agent
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=SSH_AUTH_SOCK=%h/.local/state/ssh-agent/socket
|
||||
ExecStartPre=/usr/bin/mkdir -p %h/.local/state/ssh-agent
|
||||
ExecStartPre=/usr/bin/rm -f %h/.local/state/ssh-agent/socket
|
||||
ExecStart=/usr/bin/ssh-agent -D -a %h/.local/state/ssh-agent/socket
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
10
dotfiles/desktop/.config/systemd/user/syncthing.service
Normal file
10
dotfiles/desktop/.config/systemd/user/syncthing.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Syncthing file synchronization
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logfile=default
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user