Skip to content

Commit

Permalink
[GuiVM] add Audio Control systemctl service
Browse files Browse the repository at this point in the history
So the Audio Control is always up and able
in system tray and by DBus

Also fixes wrong dark theme of the app

Signed-off-by: Nikita Bazulin <[email protected]>
  • Loading branch information
baz2142 authored and brianmcgillion committed Dec 9, 2024
1 parent e0eba55 commit 745a6df
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/common/services/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ in
{
name = "Audio Control";
description = "System Audio Control";
path = "${pkgs.ghaf-audio-control}/bin/GhafAudioControlStandalone --pulseaudio_server=audio-vm:${toString pulseaudioTcpControlPort}";
path = "${pkgs.ghaf-audio-control}/bin/GhafAudioControlStandalone --pulseaudio_server=audio-vm:${toString pulseaudioTcpControlPort} --indicator_icon_name=preferences-sound";
icon = "preferences-sound";
}

Expand Down
15 changes: 15 additions & 0 deletions modules/microvm/virtualization/microvm/guivm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,21 @@ let
# We dont enable services.blueman because it adds blueman desktop entry
services.dbus.packages = [ pkgs.blueman ];
systemd.packages = [ pkgs.blueman ];

systemd.user.services.audio-control = {
enable = true;
description = "Audio Control application";

serviceConfig = {
Type = "simple";
Restart = "always";
RestartSec = "5";
ExecStart = "${pkgs.ghaf-audio-control}/bin/GhafAudioControlStandalone --pulseaudio_server=audio-vm:${toString config.ghaf.services.audio.pulseaudioTcpControlPort} --deamon_mode=true --indicator_icon_name=preferences-sound";
};

partOf = [ "ghaf-session.target" ];
wantedBy = [ "ghaf-session.target" ];
};
}
)
];
Expand Down

0 comments on commit 745a6df

Please sign in to comment.