feat: move stuff around a bit, created new modules.
This commit is contained in:
parent
12fadadc5c
commit
506525af35
12 changed files with 247 additions and 215 deletions
28
modules/linux/nixos/pc-services.nix
Normal file
28
modules/linux/nixos/pc-services.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.pc-services.enable = lib.mkEnableOption "Enable and setup pc related service for gpu/fan/rgb management.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.pc-services.enable {
|
||||
# Enable coolercontrol to setup fancurves
|
||||
programs.coolercontrol = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Setup gpu fan curves and light undervolt
|
||||
services.lact.enable = true;
|
||||
|
||||
# Setup display brightness changing using ddcutil
|
||||
hardware.i2c.enable = true;
|
||||
|
||||
# Setup rgb control
|
||||
services.hardware.openrgb.enable = true;
|
||||
|
||||
# Needed modules to have fan control
|
||||
boot.kernelModules = ["coretemp" "nct6775"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue