config/hosts/TITAN/extras/ddcci-backlight.nix

15 lines
391 B
Nix
Raw Permalink Normal View History

2022-02-05 21:42:36 +02:00
{ 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;
})
];
}