mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/hardware/monitor: init
This commit is contained in:
parent
565fbc96d9
commit
c9e4dd7128
3 changed files with 25 additions and 0 deletions
23
modules/hardware/monitor/default.nix
Normal file
23
modules/hardware/monitor/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue