mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-10-30 17:32:09 +01:00
24 lines
330 B
Nix
24 lines
330 B
Nix
|
|
{
|
||
|
|
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
|
||
|
|
];
|
||
|
|
};
|
||
|
|
}
|