mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-21 11:33:52 +00:00
36 lines
549 B
Nix
36 lines
549 B
Nix
{
|
|
x,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with x;
|
|
let
|
|
cfg = config.module.misc.system76;
|
|
in
|
|
{
|
|
options = {
|
|
module.misc.system76 = {
|
|
enable = mkBool;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
hardware.system76 = {
|
|
# OPTIMIZATIONS
|
|
enableAll = True;
|
|
power-daemon = True;
|
|
firmware-daemon = True;
|
|
kernel-modules = True;
|
|
};
|
|
services.system76-scheduler = True // {
|
|
# SCHEDULER
|
|
settings = {
|
|
cfsProfiles = True;
|
|
processScheduler.pipewireBoost = True;
|
|
};
|
|
};
|
|
};
|
|
}
|