move pipewire

This commit is contained in:
Sean Buckley 2022-10-31 14:27:58 -04:00
parent 554fadbc3c
commit 70526d0968
2 changed files with 11 additions and 20 deletions

View file

@ -1,19 +0,0 @@
{ config, lib, ... }:
let
cfg = config.sconfig.pipewire;
in
{
options.sconfig.pipewire = lib.mkEnableOption "Enable Pipewire";
config = lib.mkIf cfg {
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
};
};
}

View file

@ -4,10 +4,20 @@ with lib;
config = mkIf (config.sconfig.profile == "desktop") {
services.pcscd.enable = true;
# Pipewire
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
};
sconfig = {
alacritty.enable = true;
security-tools = true;
pipewire = true;
};
services.udev.extraHwdb = ''