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

50 lines
932 B
Nix
Raw Normal View History

2023-06-19 01:36:50 -04:00
{ config, pkgs, ... }:
{
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
# enable brightness control for swayosd
programs.light.enable = true;
services = {
udev.extraRules = ''
2023-06-19 01:36:50 -04:00
# give permanent path to keyboard XF86* binds
SUBSYSTEMS=="input", ATTRS{id/product}=="0006", ATTRS{id/vendor}=="0000", SYMLINK += "video-bus"
'';
fwupd.enable = true;
2023-06-19 01:36:50 -04:00
# Enable CUPS to print documents.
printing.enable = true;
printing.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
}