dotfiles/modules/brightnessctl/default.nix

16 lines
276 B
Nix

{config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.brightnessctl;
in {
options.modules.brightnessctl = {
enable = mkEnableOption "brightnessctl";
};
config = mkIf cfg.enable {
environment.systemPackages = [
pkgs.brightnessctl
];
};
}