summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrisha Shipunov2025-04-01 18:16:36 +0200
committerGrisha Shipunov2025-04-01 18:16:36 +0200
commit8d483bdd1d0ad22766dfdc328a4044d155d3b5b2 (patch)
tree6ef1962dbbdb5e84d0c409e2f8a67e1d363892ca
parenteb4c98a5c848fd1759a0b36a7891ff6f229ab40d (diff)
enable ddcutil brigtness control
-rw-r--r--hosts/toaster/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/hosts/toaster/default.nix b/hosts/toaster/default.nix
index 1a3216a..7e78114 100644
--- a/hosts/toaster/default.nix
+++ b/hosts/toaster/default.nix
@@ -46,6 +46,11 @@
supportedLocales = [ "all" ];
};
+ # support ddc brigtness control
+ hardware.i2c.enable = true;
+ boot.kernelModules = [ "i2c-dev" ];
+ environment.systemPackages = [ pkgs.ddcutil ];
+
users.users."0xa" = {
extraGroups = [
"wheel"
@@ -55,6 +60,7 @@
"bluetooth"
"libvirtd"
"qemu-libvirtd"
+ "i2c"
];
group = "users";
home = "/home/0xa";