enable pipewire

This commit is contained in:
Sean Buckley 2021-04-30 14:32:27 -04:00
parent 5bda449918
commit c1421554c6
2 changed files with 12 additions and 3 deletions

View file

@ -1,4 +1,7 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
let
legacy = (config.system.nixos.release == "20.09");
in
{
environment.systemPackages = with pkgs; [
brave
@ -47,7 +50,13 @@
programs.steam.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.enable = legacy;
services.pipewire = if legacy then { } else {
enable = true;
pulse.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
};
boot.loader.timeout = null;
}

View file

@ -19,7 +19,7 @@ in
};
})
(mkIf (cfg == "desktop") (import ./graphical.nix { inherit pkgs; }))
(mkIf (cfg == "desktop") (import ./graphical.nix { inherit pkgs config; }))
];
}