Skip to content

Commit

Permalink
feat(sound): fix systemd-service startup timing
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Nov 22, 2024
1 parent 92d94d8 commit f92e689
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions home/sound-levels-maintainer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ in {

systemd.user.services.sound-levels-maintainer = {
Unit = {
After = ["obs-mic.service"];
Description = "Maintain input/output gain/volume levels";
Requires = ["obs-mic.service"];
};
Install.WantedBy = ["default.target"];
Service = {
Expand Down
3 changes: 3 additions & 0 deletions home/virtual-cable/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ in {

systemd.user.services.obs-mic = {
Unit = {
After = ["wireplumber.service"];
Description = "Set up virtualMic and virtualSpeaker for OBS";
Requires = ["wireplumber.service"];
};
Install.WantedBy = ["default.target"];
Service = {
Environment = "PATH=$PATH:/run/current-system/sw/bin";
ExecStartPre = "${pkgs.coreutils}/bin/sleep 5"; # TODO: Find a better way to wait for WirePlumber to fully start
ExecStart = "${obs-mic}/bin/obs-mic";
Type = "oneshot";
};
Expand Down

0 comments on commit f92e689

Please sign in to comment.