aboutsummaryrefslogtreecommitdiffhomepage
path: root/nixos.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-08 08:03:50 +0900
committerOphestra <cat@gensokyo.uk>2025-12-08 08:53:04 +0900
commit87781c765844409226804157546753b84ef3c6b4 (patch)
tree4fa7bdbe890979badada6c36183a2ff25b7b85a8 /nixos.nix
parent0c38fb7b6a17bed9392a4cf46fc752bc2de8eb18 (diff)
treewide: include PipeWire op and enforce PulseAudio check
This fully replaces PulseAudio with PipeWire and enforces the PulseAudio check and error message. The pipewire-pulse daemon is handled in the NixOS module. Closes #26. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'nixos.nix')
-rw-r--r--nixos.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos.nix b/nixos.nix
index efa659c2..2f238eeb 100644
--- a/nixos.nix
+++ b/nixos.nix
@@ -196,6 +196,15 @@ in
}
]
)
+ ++ optional (app.enablements.pipewire && app.pulse) {
+ type = "daemon";
+ dst = if app.mapRealUid then "/run/user/${toString config.users.users.${username}.uid}/pulse/native" else "/run/user/65534/pulse/native";
+ path = cfg.shell;
+ args = [
+ "-lc"
+ "pipewire-pulse"
+ ];
+ }
++ [
{
type = "bind";