depot/third_party/nixpkgs/nixos/modules/services/hardware/irqbalance.nix

25 lines
382 B
Nix
Raw Normal View History

#
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.irqbalance;
in
{
options.services.irqbalance.enable = mkEnableOption (lib.mdDoc "irqbalance daemon");
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.irqbalance ];
systemd.services.irqbalance.wantedBy = ["multi-user.target"];
systemd.packages = [ pkgs.irqbalance ];
};
}