<commit_before>{ config
, lib
, pkgs
, ...
}:

let
  cfg = config.services.ddccontrol;
in

{
  ###### interface

  options = {
    services.ddccontrol = {
      enable = lib.mkEnableOption "ddccontrol for controlling displays";
    };
  };

  ###### implementation

  config = lib.mkIf cfg.enable {
    # Give users access to the "gddccontrol" tool
    environment.systemPackages = [
      pkgs.ddccontrol
    ];

    services.dbus.packages = [
      pkgs.ddccontrol
    ];

    systemd.packages = [
      pkgs.ddccontrol
    ];
  };
}<commit_msg>nixos/ddccontrol: Ensure that i2c_dev module is loaded<commit_after>{ config
, lib
, pkgs
, ...
}:

let
  cfg = config.services.ddccontrol;
in

{
  ###### interface

  options = {
    services.ddccontrol = {
      enable = lib.mkEnableOption "ddccontrol for controlling displays";
    };
  };

  ###### implementation

  config = lib.mkIf cfg.enable {
    # Load the i2c-dev module
    boot.kernelModules = [ "i2c_dev" ];

    # Give users access to the "gddccontrol" tool
    environment.systemPackages = [
      pkgs.ddccontrol
    ];

    services.dbus.packages = [
      pkgs.ddccontrol
    ];

    systemd.packages = [
      pkgs.ddccontrol
    ];
  };
}
{'fraction_non_alphanumeric': 0.1285240464344942, 'fraction_numerical': 0.0024875621890547263, 'mean_word_length': 2.458452722063037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1553299', 'n_tokens_mistral': 420, 'n_tokens_neox': 400, 'n_words': 80}