[Unit]
Description=Switcheroo Control Proxy service
Before=multi-user.target display-manager.service alsa-restore.service alsa-state.service

[Service]
Type=dbus
BusName=net.hadess.SwitcherooControl
ExecStart=/usr/lib/switcheroo-control

# Lockdown
ProtectSystem=strict
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
PrivateTmp=true
RestrictAddressFamilies=AF_UNIX AF_LOCAL AF_NETLINK
MemoryDenyWriteExecute=true
RestrictRealtime=true

[Install]
WantedBy=graphical.target
