about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/services/hardware/irqbalance.nix
blob: 8ba0a73d895d39ba3a1ae5c691a041d087167d7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
{ 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 ];

  };

}