1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-06 11:43:53 +00:00
ultima/modules/nixos/misc/system76/default.nix
2024-11-21 18:24:15 +09:00

25 lines
520 B
Nix

{ lib, config, True, ... }:
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 = True;
firmware-daemon = True;
kernel-modules = True;
};
services.system76-scheduler = True // { # SCHEDULER
settings = {
cfsProfiles = True;
processScheduler.pipewireBoost = True;
};
};
};
}