From fe39db683a1b4b128296d9810d8382e26dff7392 Mon Sep 17 00:00:00 2001 From: kenji Date: Fri, 26 Dec 2025 13:26:27 -0600 Subject: [PATCH] add: backlight.nix --- modules/system/default.nix | 1 + system/backlight.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 system/backlight.nix diff --git a/modules/system/default.nix b/modules/system/default.nix index a5b6919..6ab7d0a 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -1,6 +1,7 @@ {pkgs, ...}: { imports = [ ../../system/time.nix + ../../system/backlight.nix ../../system/boot.nix ../../system/amd.nix ../../system/hardware.nix diff --git a/system/backlight.nix b/system/backlight.nix new file mode 100644 index 0000000..8ca384f --- /dev/null +++ b/system/backlight.nix @@ -0,0 +1,9 @@ +{ + pkgs, + myConfig, + ... +}: { + hardware.i2c.enable = true; + environment.systemPackages = with pkgs; [ddcutil]; + users.users.${myConfig.nixos.username}.extraGroups = ["i2c"]; +}