Added audio config

This commit is contained in:
Alejandro Angulo 2023-03-25 09:28:53 -07:00
parent 58118e7ab8
commit a190c35901
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
3 changed files with 28 additions and 15 deletions

View file

@ -0,0 +1,24 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.hardware.audio;
in {
options.aa.hardware.audio = with types; {
enable = mkEnableOption "audio";
};
config = mkIf cfg.enable {
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}

View file

@ -27,6 +27,8 @@
apps.tmux.enable = true;
services.printing.enable = true;
hardware.audio.enable = true;
};
networking = {
@ -163,14 +165,6 @@
#};
};
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];

View file

@ -33,6 +33,8 @@
subdomain_name = "gospel";
};
services.printing.enable = true;
hardware.audio.enable = true;
};
boot.binfmt.emulatedSystems = ["aarch64-linux" "armv6l-linux"];
@ -83,13 +85,6 @@
file
];
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you