depot/third_party/nixpkgs/nixos/modules/hardware/brillo.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

19 lines
405 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.hardware.brillo;
in
{
options = {
hardware.brillo = {
enable = lib.mkEnableOption ''
brillo in userspace.
This will allow brightness control from users in the video group
'';
};
};
config = lib.mkIf cfg.enable {
services.udev.packages = [ pkgs.brillo ];
environment.systemPackages = [ pkgs.brillo ];
};
}