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
@@ -0,0 +1,17 @@
[Unit]
Description=Fetch NAS credentials from 1Password
After=graphical-session.target
[Service]
Type=oneshot
Environment="DISPLAY=:0"
Environment="WAYLAND_DISPLAY=wayland-0"
Environment="OP_BIOMETRIC_UNLOCK_ENABLED=true"
ExecStart=sudo -u sammieo -E /home/sammieo/.local/bin/fetch-nas-credentials.sh
ExecStartPost=sudo -u sammieo /usr/bin/systemctl start nas-mounts.target
RemainAfterExit=yes
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=default.target
@@ -0,0 +1,13 @@
[Unit]
Description=1Password CLI SignIn
After=graphical-session.target
[Service]
Type=oneshot
Environment="DISPLAY=:0"
Environment="WAYLAND_DISPLAY=wayland-0"
Environment="OP_BIOMETRIC_UNLOCK_ENABLED=true"
ExecStart=/bin/sh op signin
[Install]
WantedBy=default.target