From e840e718753828e4fa189ca58b426721b7ea19ad Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Thu, 5 Mar 2026 13:26:37 +0300 Subject: [PATCH] ddcutil to control external display brightness --- apps/apps-list.nix | 1 + defaults/default.nix | 5 +++++ hosts/djamba.nix | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/apps-list.nix b/apps/apps-list.nix index 4505c7b..4d180f0 100644 --- a/apps/apps-list.nix +++ b/apps/apps-list.nix @@ -7,6 +7,7 @@ nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ + ddcutil nix-search-cli alacritty yazi diff --git a/defaults/default.nix b/defaults/default.nix index 272f561..5a380f9 100644 --- a/defaults/default.nix +++ b/defaults/default.nix @@ -14,6 +14,11 @@ fontSize = 36; }; }; + boot.kernelModules = ["i2c-dev"]; + hardware.i2c.enable = true; + services.udev.extraRules = '' + KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660" + ''; # Set your time zone. time.timeZone = "Europe/Moscow"; diff --git a/hosts/djamba.nix b/hosts/djamba.nix index bbf4002..08a4505 100644 --- a/hosts/djamba.nix +++ b/hosts/djamba.nix @@ -44,7 +44,7 @@ users.users.venya = { isNormalUser = true; description = "Dmitry Chumak"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel" "i2c"]; };