service/hardware/monitor: init

This commit is contained in:
Felix Buehler 2024-10-22 21:38:38 +02:00
parent 565fbc96d9
commit c9e4dd7128
3 changed files with 25 additions and 0 deletions

View file

@ -27,6 +27,7 @@ in
graphics.cpuFlavor = cpuFlavor;
id-card.enable = true;
keychron.enable = true;
monitor.enable = true;
sound.enable = true;
thunderbolt.enable = true;
yubikey.enable = true;

View file

@ -9,6 +9,7 @@
./graphics
./id-card
./keychron
./monitor
./sound
./thunderbolt
./yubikey

View file

@ -0,0 +1,23 @@
{
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
];
};
}