modules/hyprspace: install hyprspace CLI to systemPackages, make RPC accessible to wheel group

This commit is contained in:
Max Headroom 2023-03-31 18:10:13 +02:00
parent 2146597a06
commit b2638f762e

View file

@ -43,6 +43,7 @@ in {
chmod 0400 ${runConfig} chmod 0400 ${runConfig}
''; '';
serviceConfig = { serviceConfig = {
Group = "wheel";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = "5s"; RestartSec = "5s";
ExecStart = "${hyprspace}/bin/hyprspace up hyprspace -f -c ${runConfig}"; ExecStart = "${hyprspace}/bin/hyprspace up hyprspace -f -c ${runConfig}";
@ -72,4 +73,7 @@ in {
allowedUDPPorts = [ listenPort ]; allowedUDPPorts = [ listenPort ];
trustedInterfaces = [ "hyprspace" ]; trustedInterfaces = [ "hyprspace" ];
}; };
environment.systemPackages = [
hyprspace
];
} }