Add ddcutil configuration for monitor controls

This commit is contained in:
Chris Toph 2025-03-06 19:40:27 -05:00
parent bb5b1812c0
commit 6097c89763
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{ pkgs, ... }:
{
environment.systemPackages = builtins.attrValues {
inherit (pkgs)
ddcutil
;
};
# Configurations for ddcutil
hardware.i2c.enable = true;
services.udev = {
enable = true;
extraRules = ''
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
'';
};
}

View file

@ -30,6 +30,7 @@ in
## Optional Configs ## ## Optional Configs ##
"hosts/common/optional/audio.nix" # pipewire and cli controls "hosts/common/optional/audio.nix" # pipewire and cli controls
"hosts/common/optional/ddcutil.nix" # ddcutil for monitor controls
"hosts/common/optional/gaming.nix" # steam, gamescope, gamemode, and related hardware "hosts/common/optional/gaming.nix" # steam, gamescope, gamemode, and related hardware
"hosts/common/optional/gnome.nix" # desktop "hosts/common/optional/gnome.nix" # desktop
"hosts/common/optional/libvirt.nix" # vm tools "hosts/common/optional/libvirt.nix" # vm tools