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"]; +}