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 = [ imports = [
@ -60,13 +65,13 @@
users.groups.mixer = { }; users.groups.mixer = { };
# wprsd service # wprsd service
systemd.services.mixer = { systemd.services.wprsd = {
description = "Carla Service"; description = "wprsd Service";
wantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
after = [ "network.target" ]; after = [ "network.target" ];
serviceConfig = { serviceConfig = {
ExecStart = "${pkgs.wprs}/bin/wprsd"; 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"; Restart = "always";
RestartSec = 5; RestartSec = 5;
User = "mixer"; User = "mixer";