nixos/modules/hardware/monitor/default.nix

24 lines
330 B
Nix
Raw Normal View History

2024-10-22 21:38:38 +02:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.hardware.monitor;
in
{
options.my.hardware.monitor = {
enable = lib.mkEnableOption "monitor configuration";
};
config = lib.mkIf cfg.enable {
hardware.i2c.enable = true;
environment.systemPackages = with pkgs; [
ddcutil
ddcui
];
};
}