fix(nixos): Don't install audio/printing drivers on servers

This commit is contained in:
punkfairie 2025-02-17 20:23:57 -08:00
parent e9cd013911
commit 5d45bfd4b0
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6

View file

@ -1,17 +1,24 @@
{pkgs, ...}: {
security.rtkit.enable = true; # Used for pulseaudio.
{
pkgs,
config,
lib,
...
}: {
config = lib.mkIf (!config.marleyos.isServer) {
security.rtkit.enable = true; # Used for pulseaudio.
services = {
pulseaudio.enable = false;
services = {
pulseaudio.enable = false;
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
printing.enable = true;
};
printing.enable = true;
environment.systemPackages = [pkgs.pwvucontrol];
};
environment.systemPackages = [pkgs.pwvucontrol];
}