NixOS/system/modules/brightnessctl.nix

10 lines
172 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.profile.brightnessctl;
in
{
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.brightnessctl ];
};
}