config/hosts/TITAN/extras/ddcci-backlight.nix
2022-02-05 20:47:50 +01:00

14 lines
391 B
Nix

{ config, pkgs, ... }:
{
systemd.targets.ddcci-backlight = rec {
before = [ "modprobe@ddcci.service" "modprobe@ddcci-backlight.service" ];
wants = before;
};
systemd.services.display-manager.wants = [ "ddcci-backlight.target" ];
boot.extraModulePackages = [ (pkgs.ddcci-driver-with-global-control.override {
inherit (config.boot.kernelPackages) kernel;
})
];
}