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
|
@ -27,6 +27,7 @@ in
|
||||||
graphics.cpuFlavor = cpuFlavor;
|
graphics.cpuFlavor = cpuFlavor;
|
||||||
id-card.enable = true;
|
id-card.enable = true;
|
||||||
keychron.enable = true;
|
keychron.enable = true;
|
||||||
|
monitor.enable = true;
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
thunderbolt.enable = true;
|
thunderbolt.enable = true;
|
||||||
yubikey.enable = true;
|
yubikey.enable = true;
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
./graphics
|
./graphics
|
||||||
./id-card
|
./id-card
|
||||||
./keychron
|
./keychron
|
||||||
|
./monitor
|
||||||
./sound
|
./sound
|
||||||
./thunderbolt
|
./thunderbolt
|
||||||
./yubikey
|
./yubikey
|
||||||
|
|
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