aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-08 02:53:07 +0900
committerOphestra <cat@gensokyo.uk>2025-12-08 03:13:02 +0900
commit422efcf258eb49ecd0d4de8e53adae656696ea56 (patch)
tree5abcdd8a0636567939dd94a7a7d1cd5ba180176c /cmd
parent104eeecf650ba52e155ff63a4d4456a6391e961f (diff)
hst: check for insecure PulseAudio enablement
This is currently still a noop, but required for #26. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/hpkg/build.nix5
-rw-r--r--cmd/hpkg/test/test.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/cmd/hpkg/build.nix b/cmd/hpkg/build.nix
index 3733f420..5e2f55ac 100644
--- a/cmd/hpkg/build.nix
+++ b/cmd/hpkg/build.nix
@@ -45,7 +45,7 @@
allow_wayland ? true,
allow_x11 ? false,
allow_dbus ? true,
- allow_pulse ? true,
+ allow_audio ? true,
gpu ? allow_wayland || allow_x11,
}:
@@ -175,7 +175,8 @@ let
wayland = allow_wayland;
x11 = allow_x11;
dbus = allow_dbus;
- pulse = allow_pulse;
+ pipewire = allow_audio;
+ pulse = allow_audio;
};
mesa = if gpu then mesaWrappers else null;
diff --git a/cmd/hpkg/test/test.py b/cmd/hpkg/test/test.py
index 790377cc..ef6a626f 100644
--- a/cmd/hpkg/test/test.py
+++ b/cmd/hpkg/test/test.py
@@ -90,7 +90,7 @@ wait_for_window("hakurei@machine-foot")
machine.send_chars("clear; wayland-info && touch /tmp/success-client\n")
machine.wait_for_file("/tmp/hakurei.0/tmpdir/2/success-client")
collect_state_ui("app_wayland")
-check_state("foot", {"wayland": True, "dbus": True, "pulse": True})
+check_state("foot", {"wayland": True, "dbus": True, "pipewire": True, "pulse": True})
# Verify acl on XDG_RUNTIME_DIR:
print(machine.succeed("getfacl --absolute-names --omit-header --numeric /run/user/1000 | grep 10002"))
machine.send_chars("exit\n")