2016-01-03 17:05:18 +00:00
|
|
|
#
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.irqbalance;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2022-08-28 20:18:44 +01:00
|
|
|
options.services.irqbalance.enable = mkEnableOption (lib.mdDoc "irqbalance daemon");
|
2016-01-03 17:05:18 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.irqbalance ];
|
|
|
|
|
2020-02-04 14:19:04 +00:00
|
|
|
systemd.services.irqbalance.wantedBy = ["multi-user.target"];
|
|
|
|
|
2020-02-02 17:09:45 +00:00
|
|
|
systemd.packages = [ pkgs.irqbalance ];
|
|
|
|
|
2016-01-03 17:05:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|