| 1 | [Unit] |
| 2 | Description=HyprKVM - Hyprland KVM Switch Daemon |
| 3 | Documentation=https://github.com/tenseleyFlow/hyprKVM |
| 4 | After=graphical-session.target |
| 5 | PartOf=graphical-session.target |
| 6 | |
| 7 | [Service] |
| 8 | Type=simple |
| 9 | ExecStart=%h/.local/bin/hyprkvm daemon |
| 10 | Restart=on-failure |
| 11 | RestartSec=5 |
| 12 | Environment=RUST_LOG=info |
| 13 | |
| 14 | # Security hardening |
| 15 | NoNewPrivileges=true |
| 16 | ProtectSystem=strict |
| 17 | ProtectHome=read-only |
| 18 | ReadWritePaths=%h/.config/hyprkvm |
| 19 | PrivateTmp=true |
| 20 | |
| 21 | [Install] |
| 22 | WantedBy=graphical-session.target |