2021-11-21 19:07:12 +01:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.eboskma.sound;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.eboskma.sound.enable = mkEnableOption "activate sound settings";
|
|
|
|
|
|
|
|
config = mkIf (cfg.enable) {
|
|
|
|
sound.enable = true;
|
|
|
|
services = {
|
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
media-session.enable = true;
|
|
|
|
};
|
|
|
|
};
|
2021-12-18 16:23:14 +01:00
|
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
2021-11-21 19:07:12 +01:00
|
|
|
environment.systemPackages = with pkgs; [ pavucontrol ];
|
|
|
|
|
|
|
|
users.extraUsers.${config.eboskma.var.mainUser}.extraGroups = [ "audio" ];
|
|
|
|
};
|
|
|
|
}
|