Update flake

This commit is contained in:
Sicheng Pan 2025-09-09 18:59:35 -05:00
parent 347923791d
commit c3beb64c8e
Signed by: macronova
GPG key ID: CE969670FB4B4A56
5 changed files with 54 additions and 52 deletions

View file

@ -13,9 +13,7 @@
];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usbhid" "uas" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -5,6 +5,9 @@
}: let
userName = config.constants.userName;
in {
# TODO: Remove this when apex 5 works out of the box: https://github.com/paroj/xpad/pull/328
boot.kernelModules = ["xpad"];
hardware = {
bluetooth.enable = true;
graphics = {
@ -42,7 +45,13 @@ in {
pulse.enable = true;
};
printing.enable = true;
udev.packages = [pkgs.via];
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'"
'';
};
};
users.users.${userName}.extraGroups = ["adbusers" "cdrom" "docker"];

View file

@ -14,6 +14,7 @@ in {
xdgCfg = config.xdg;
in {
home.packages = with pkgs; [
exactaudiocopy
feishin
jellyfin-mpv-shim
joplin-desktop
@ -49,13 +50,7 @@ in {
mpris
thumbfast
uosc
visualizer
vr-reversal
];
scriptOpts.visualizer = {
height = 9;
quality = "veryhigh";
};
};
obs-studio.enable = true;
zathura = {