1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=PipeWire Session Manager (pw-sesh)
Documentation=https://pipewire.org
After=pipewire.service
Requires=pipewire.service

[Service]
Type=simple
ExecStart=%h/.nix-profile/bin/pw-sesh ls
Restart=on-failure
RestartSec=3s

# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=read-only

[Install]
WantedBy=default.target