Added XDG_RUNTIME_DIR to wprsd service

This commit is contained in:
Jan-Bulthuis 2025-04-16 15:35:45 +02:00
parent 8629061724
commit 137b380b73
1 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,9 @@
{ lib, pkgs, ... }:
{
lib,
pkgs,
config,
...
}:
{
imports = [
@ -60,13 +65,13 @@
users.groups.mixer = { };
# wprsd service
systemd.services.mixer = {
description = "Carla Service";
systemd.services.wprsd = {
description = "wprsd Service";
wantedBy = [ "default.target" ];
after = [ "network.target" ];
serviceConfig = {
ExecStart = "${pkgs.wprs}/bin/wprsd";
Environment = "RUST_BACKTRACE=1";
Environment = "\"RUST_BACKTRACE=1\" \"XDG_RUNTIME_DIR=/run/user/${config.users.users.mixer.uid}\"";
Restart = "always";
RestartSec = 5;
User = "mixer";