mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move pipewire
This commit is contained in:
parent
554fadbc3c
commit
70526d0968
2 changed files with 11 additions and 20 deletions
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -4,10 +4,20 @@ with lib;
|
||||||
config = mkIf (config.sconfig.profile == "desktop") {
|
config = mkIf (config.sconfig.profile == "desktop") {
|
||||||
services.pcscd.enable = true;
|
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 = {
|
sconfig = {
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
security-tools = true;
|
security-tools = true;
|
||||||
pipewire = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.udev.extraHwdb = ''
|
services.udev.extraHwdb = ''
|
||||||
|
|
Loading…
Reference in a new issue