nixos-config/linux/quasar/device.nix

65 lines
1.4 KiB
Nix
Raw Normal View History

2024-12-09 04:12:16 +00:00
{
config,
pkgs,
...
}: let
userName = config.constants.userName;
in {
2025-09-09 18:59:35 -05:00
# TODO: Remove this when apex 5 works out of the box: https://github.com/paroj/xpad/pull/328
boot.kernelModules = ["xpad"];
2024-12-09 04:12:16 +00:00
hardware = {
bluetooth.enable = true;
graphics = {
enable = true;
extraPackages = [
pkgs.rocmPackages.clr.icd
];
};
keyboard.qmk.enable = true;
};
programs = {
adb.enable = true;
kdeconnect.enable = true;
noisetorch.enable = true;
};
security.rtkit.enable = true;
services = {
automatic-timezoned.enable = true;
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
fwupd.enable = true;
hardware.openrgb.enable = true;
pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
};
printing.enable = true;
2025-09-09 18:59:35 -05:00
udev = {
packages = [pkgs.via];
# TODO: Remove this when apex 5 works out of the box: https://github.com/paroj/xpad/pull/328
extraRules = ''
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="37d7", ATTRS{idProduct}=="2501", RUN+="${pkgs.bash}/bin/bash -c 'echo 37d7 2501 > /sys/bus/usb/drivers/xpad/new_id'"
'';
};
2024-12-09 04:12:16 +00:00
};
2025-04-26 11:43:58 +08:00
users.users.${userName}.extraGroups = ["adbusers" "cdrom" "docker"];
2024-12-09 04:12:16 +00:00
virtualisation = {
containers.enable = true;
2025-04-26 11:43:58 +08:00
docker.enable = true;
2025-03-20 11:16:32 +08:00
spiceUSBRedirection.enable = true;
2024-12-09 04:12:16 +00:00
};
}