Skip to content

Commit

Permalink
Desktop: Per-VM audio control, ghafpkgs bump
Browse files Browse the repository at this point in the history
- ghafpkgs flake bump
- add per-vm audio control in audio control app
- remove audio control app from app launcher
- change audio control app systray icon

Signed-off-by: Kajus Naujokaitis <[email protected]>
  • Loading branch information
kajusnau authored and brianmcgillion committed Feb 13, 2025
1 parent 123a9ba commit 479b753
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 26 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.

16 changes: 16 additions & 0 deletions modules/desktop/graphics/labwc.config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,22 @@ in
partOf = [ "ewwbar.service" ];
};

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=audio-subwoofer";
};

partOf = [ "ewwbar.service" ];
after = [ "ewwbar.service" ];
wantedBy = [ "ewwbar.service" ];
};

# We use existing blueman services and create overrides for both
blueman-applet = {
enable = true;
Expand Down
15 changes: 0 additions & 15 deletions modules/microvm/virtualization/microvm/guivm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -168,21 +168,6 @@ let
systemd = {
packages = [ pkgs.blueman ];

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" ];
};

services."waypipe-ssh-keygen" =
let
uid = "${toString config.ghaf.users.loginUser.uid}";
Expand Down
8 changes: 0 additions & 8 deletions modules/reference/desktop/applications.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
}:
let
cfg = config.ghaf.reference.desktop.applications;
inherit (config.ghaf.services.audio) pulseaudioTcpControlPort;
inherit (lib) mkIf mkEnableOption;
in
{
Expand Down Expand Up @@ -46,13 +45,6 @@ in
command = "${pkgs.bt-launcher}/bin/bt-launcher";
}

{
name = "Audio Control";
description = "System Audio Control";
icon = "preferences-sound";
command = "${pkgs.ghaf-audio-control}/bin/GhafAudioControlStandalone --pulseaudio_server=audio-vm:${toString pulseaudioTcpControlPort} --indicator_icon_name=preferences-sound";
}

{
name = "Falcon AI";
description = "Your local large language model, developed by TII";
Expand Down

0 comments on commit 479b753

Please sign in to comment.