Moved wprsd to proper user service
This commit is contained in:
parent
12c56eaac5
commit
26c5ce5cf3
|
@ -59,20 +59,22 @@
|
||||||
|
|
||||||
# User for audio mixing
|
# User for audio mixing
|
||||||
users.users.mixer = {
|
users.users.mixer = {
|
||||||
uid = 1001;
|
isNormalUser = true;
|
||||||
isSystemUser = true;
|
|
||||||
group = "mixer";
|
group = "mixer";
|
||||||
};
|
};
|
||||||
users.groups.mixer = { };
|
users.groups.mixer = { };
|
||||||
|
|
||||||
# wprsd service
|
# wprsd service
|
||||||
systemd.services.wprsd = {
|
systemd.user.services.wprsd = {
|
||||||
description = "wprsd Service";
|
description = "wprsd Service";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
unitConfig = {
|
||||||
|
ConditionUser = "mixer";
|
||||||
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.wprs}/bin/wprsd";
|
ExecStart = "${pkgs.wprs}/bin/wprsd";
|
||||||
Environment = "\"RUST_BACKTRACE=1\" \"XDG_RUNTIME_DIR=/run/user/1001\"";
|
Environment = "\"RUST_BACKTRACE=1\"";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
User = "mixer";
|
User = "mixer";
|
||||||
|
|
Loading…
Reference in New Issue