From 41867fb653cc4d55688bba233c057871c193e481 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Fri, 18 Apr 2025 21:49:10 +0200 Subject: [PATCH] Added a service for open stage control --- machines/vm-audio.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/machines/vm-audio.nix b/machines/vm-audio.nix index ee73593..83ba516 100644 --- a/machines/vm-audio.nix +++ b/machines/vm-audio.nix @@ -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" = [