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

52 lines
944 B
Nix
Raw Normal View History

2023-09-29 23:46:34 -04:00
{ pkgs, ... }:
2023-06-19 01:36:50 -04:00
{
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
# enable brightness control for swayosd
programs.light.enable = true;
services = {
udev.extraRules = ''
2023-09-29 23:46:34 -04:00
# give permanent path to keyboard XF86* binds
SUBSYSTEMS=="input", ATTRS{id/product}=="0006", ATTRS{id/vendor}=="0000", SYMLINK += "video-bus"
'';
2023-06-19 01:36:50 -04:00
fwupd.enable = true;
2023-06-19 01:36:50 -04:00
# Enable CUPS to print documents.
2023-09-29 23:46:34 -04:00
printing = {
enable = true;
drivers = with pkgs; [
hplip
];
};
2023-06-19 01:36:50 -04:00
pipewire = {
enable = true;
alsa.enable = true;
jack.enable = true;
pulse.enable = true;
};
2023-06-19 01:36:50 -04:00
upower.enable = true;
};
hardware = {
pulseaudio.enable = false;
sensor.iio.enable = true;
opengl.enable = true;
opengl.driSupport32Bit = true;
uinput.enable = true;
2023-06-19 01:36:50 -04:00
};
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
}