Rebase to flake parts #6

This commit is contained in:
2026-05-08 19:05:10 -03:00
parent d51f41566c
commit 1015cf4577
18 changed files with 934 additions and 35 deletions
+22
View File
@@ -0,0 +1,22 @@
# DDC/CI helper + i2c-dev + ddcutil (implementation under `package/`).
{ ... }: {
flake.nixosModules.systemMonitorInput =
{ config, lib, pkgs, ... }:
let
cfg = config.chiasson.system.monitorInput;
monitorInputPkg = pkgs.callPackage ./package { };
in
{
options.chiasson.system.monitorInput.enable = lib.mkEnableOption ''
`i2c-dev`, ddcutil, and `monitor-input` for DDC/CI input switching.
'';
config = lib.mkIf cfg.enable {
boot.kernelModules = [ "i2c-dev" ];
environment.systemPackages = [
pkgs.ddcutil
monitorInputPkg
];
};
};
}