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