mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
enable pipewire
This commit is contained in:
parent
5bda449918
commit
c1421554c6
2 changed files with 12 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ in
|
|||
};
|
||||
})
|
||||
|
||||
(mkIf (cfg == "desktop") (import ./graphical.nix { inherit pkgs; }))
|
||||
(mkIf (cfg == "desktop") (import ./graphical.nix { inherit pkgs config; }))
|
||||
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue