summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-08-16 22:41:06 -0600
committerAlejandro Soto <alejandro@34project.org>2024-08-17 00:02:39 -0600
commit556ce3e501ad8da745c47576d23e7be9c3d5c729 (patch)
tree7b6a26dd7ca2679ddee3c89e02318afc28397cd6 /sys
parent97e829e24e9fdb68d8e989c2703cee9803a2e82f (diff)
sys/seat: switch from pulseaudio to pipewire
Diffstat (limited to 'sys')
-rw-r--r--sys/seat/default.nix26
1 files changed, 21 insertions, 5 deletions
diff --git a/sys/seat/default.nix b/sys/seat/default.nix
index d5c5f3d..f391058 100644
--- a/sys/seat/default.nix
+++ b/sys/seat/default.nix
@@ -34,7 +34,27 @@ in
else { };
in
{
- hardware.acpilight.enable = true;
+ hardware = {
+ acpilight.enable = true;
+ pulseaudio.enable = false;
+ };
+
+ security.rtkit.enable = true;
+
+ services.pipewire = {
+ enable = true;
+
+ alsa = {
+ enable = true;
+ support32Bit = true;
+ };
+
+ jack.enable = true;
+ pulse.enable = true;
+ };
+
+ # Remove sound.enable or set it to false if you had it set previously, as sound.enable is only meant for ALSA-based configurations
+ sound.enable = false;
users = {
groups = mapAttrs (_: user: { inherit (user) gid; }) users // {
@@ -59,8 +79,6 @@ in
)
(mkIf cfg.graphical {
- hardware.pulseaudio.enable = true;
-
programs.dconf.enable = true;
services = {
@@ -77,8 +95,6 @@ in
};
};
- sound.enable = true;
-
users.groups.adbusers.gid = 1008;
})
]);