2020-04-24 23:36:52 +00:00
|
|
|
#
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.irqbalance;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2024-04-21 15:54:59 +00:00
|
|
|
options.services.irqbalance.enable = mkEnableOption "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 ];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|