nixpkgs/nixos/modules/services/hardware/irqbalance.nix
2024-08-30 00:30:49 +02:00

22 lines
366 B
Nix

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