Add ddcutil configuration for monitor controls
This commit is contained in:
parent
bb5b1812c0
commit
6097c89763
2 changed files with 18 additions and 0 deletions
17
hosts/common/optional/ddcutil.nix
Normal file
17
hosts/common/optional/ddcutil.nix
Normal 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"
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -30,6 +30,7 @@ in
|
|||
|
||||
## Optional Configs ##
|
||||
"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/gnome.nix" # desktop
|
||||
"hosts/common/optional/libvirt.nix" # vm tools
|
||||
|
|
Loading…
Add table
Reference in a new issue