nixos-configs/nixos/cfg/extra-hardware.nix

44 lines
960 B
Nix
Raw Normal View History

2023-06-19 01:36:50 -04:00
{ config, pkgs, ... }:
{
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
services.udev.extraRules = ''
# give permanent path to keyboard XF86* binds
SUBSYSTEMS=="input", ATTRS{id/product}=="0006", ATTRS{id/vendor}=="0000", SYMLINK += "video-bus"
'';
# enable brightness control for swayosd
programs.light.enable = true;
services.fwupd.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
services.printing.drivers = with pkgs; [
hplip
];
# Enable sound.
# sound.enable = true;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
jack.enable = true;
pulse.enable = true;
};
hardware.sensor.iio.enable = true;
hardware.opengl.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.uinput.enable = true;
2023-09-12 08:02:35 -04:00
virtualisation = {
libvirtd.enable = true;
2023-09-21 17:10:55 -04:00
waydroid.enable = true;
2023-09-12 08:02:35 -04:00
};
2023-06-19 01:36:50 -04:00
}