mirror of
https://git.sr.ht/~azikx/karbur
synced 2024-10-30 11:26:21 +00:00
26 lines
555 B
Nix
26 lines
555 B
Nix
|
{ lib, config, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let cfg = config.module.misc.system76;
|
||
|
in {
|
||
|
options = { module.misc.system76.enable = mkEnableOption ""; };
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
hardware.system76 = { # OPTIMIZATIONS
|
||
|
enableAll = true;
|
||
|
power-daemon.enable = true;
|
||
|
firmware-daemon.enable = true;
|
||
|
kernel-modules.enable = true;
|
||
|
};
|
||
|
services.system76-scheduler = { # SCHEDULER
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
cfsProfiles.enable = true;
|
||
|
processScheduler.pipewireBoost.enable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|