diff --git a/machines/thinkman/hardware-configuration.nix b/machines/thinkman/hardware-configuration.nix index 3deffaf..df207e2 100644 --- a/machines/thinkman/hardware-configuration.nix +++ b/machines/thinkman/hardware-configuration.nix @@ -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; diff --git a/modules/hardware/default.nix b/modules/hardware/default.nix index e590457..11dc7e9 100644 --- a/modules/hardware/default.nix +++ b/modules/hardware/default.nix @@ -9,6 +9,7 @@ ./graphics ./id-card ./keychron + ./monitor ./sound ./thunderbolt ./yubikey diff --git a/modules/hardware/monitor/default.nix b/modules/hardware/monitor/default.nix new file mode 100644 index 0000000..a37a8f2 --- /dev/null +++ b/modules/hardware/monitor/default.nix @@ -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 + ]; + }; +}