2020-04-24 23:36:52 +00:00
|
|
|
#
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.irqbalance;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2022-09-09 14:08:57 +00:00
|
|
|
options.services.irqbalance.enable = mkEnableOption (lib.mdDoc "irqbalance daemon");
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.irqbalance ];
|
|
|
|
|
|
|
|
systemd.services.irqbalance.wantedBy = ["multi-user.target"];
|
|
|
|
|
|
|
|
systemd.packages = [ pkgs.irqbalance ];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|