feat(services): add system 76 scheduler module

This commit is contained in:
ooks-io 2024-04-08 00:00:07 +12:00
parent 701a5aea1f
commit 38232074d6
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ lib, config, ... }:
let
cfg = config.systemModules.services.system76Scheduler;
inherit (lib) mkEnableOption mkIf;
in
{
options.systemModules.services.system76Scheduler = {
enable = mkEnableOption "Enable system 76 scheduler module";
};
config = mkIf cfg.enable {
services.system76-scheduler = {
enable = true;
};
# fix suspend issues
powerManagement = {
powerDownCommands = "systemctl stop system76-scheduler";
resumeCommands = "systemctl start system76-scheduler";
};
};
}