2021-07-29 20:21:51 +00:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2021-08-22 19:52:33 +00:00
|
|
|
environment.systemPackages = [ pkgs.rtkit ];
|
2021-07-29 20:21:51 +00:00
|
|
|
# NOTE: This assumes that the devices are x86_64 (cough i686 UEFI cough)
|
|
|
|
hardware = {
|
|
|
|
enableRedistributableFirmware = true;
|
|
|
|
# This is a Pipewire household!
|
|
|
|
pulseaudio.enable = false;
|
|
|
|
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
driSupport = true;
|
|
|
|
extraPackages = with pkgs; [ vaapiVdpau libvdpau-va-gl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Only a subset of my devices have bluetooth
|
|
|
|
#bluetooth.enable = lib.mkDefault false;
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
# Everyone needs sound
|
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# On desktop: Monitor keyboards, mice, ...
|
|
|
|
# On portable devices: Monitor their battery
|
|
|
|
upower.enable = true;
|
|
|
|
|
|
|
|
# What generated entropy?
|
|
|
|
haveged.enable = true;
|
|
|
|
};
|
|
|
|
}
|