Added a service for open stage control

This commit is contained in:
Jan-Bulthuis 2025-04-18 21:49:10 +02:00
parent c063cf2dac
commit 41867fb653
1 changed files with 22 additions and 0 deletions

View File

@ -31,6 +31,7 @@
pulsemixer
adwaita-icon-theme
waypipe
open-stage-control
# Add LV2 plugins
lsp-plugins
@ -140,6 +141,27 @@
};
};
# Open stage control service
systemd.user.services.osc = {
description = "OSC Service";
wantedBy = [ "default.target" ];
after = [
"network.target"
];
requires = [
"carla.service"
];
unitConfig = {
ConditionUser = "mixer";
};
serviceConfig = {
ExecStart = "${pkgs.open-stage-control}/bin/open-stage-control --no-gui --load /home/mixer/open-stage-control/session.json --theme /home/mixer/open-stage-control/theme.css";
Environment = "\"ELECTRON_RUN_AS_NODE=1\"";
Restart = "always";
RestartSec = 5;
};
};
# Create null sinks
services.pipewire.extraConfig.pipewire."91-null-sinks" = {
"context.objects" = [