irqbalance: init at 1.1.0
This commit is contained in:
parent
90b853b706
commit
7636359c89
4 changed files with 58 additions and 0 deletions
|
@ -164,6 +164,7 @@
|
||||||
./services/hardware/bluetooth.nix
|
./services/hardware/bluetooth.nix
|
||||||
./services/hardware/brltty.nix
|
./services/hardware/brltty.nix
|
||||||
./services/hardware/freefall.nix
|
./services/hardware/freefall.nix
|
||||||
|
./services/hardware/irqbalance.nix
|
||||||
./services/hardware/nvidia-optimus.nix
|
./services/hardware/nvidia-optimus.nix
|
||||||
./services/hardware/pcscd.nix
|
./services/hardware/pcscd.nix
|
||||||
./services/hardware/pommed.nix
|
./services/hardware/pommed.nix
|
||||||
|
|
30
nixos/modules/services/hardware/irqbalance.nix
Normal file
30
nixos/modules/services/hardware/irqbalance.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
#
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.services.irqbalance;
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.services.irqbalance.enable = mkEnableOption "irqbalance daemon";
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
systemd.services = {
|
||||||
|
irqbalance = {
|
||||||
|
description = "irqbalance daemon";
|
||||||
|
path = [ pkgs.irqbalance ];
|
||||||
|
serviceConfig =
|
||||||
|
{ ExecStart = "${pkgs.irqbalance}/bin/irqbalance --foreground"; };
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.irqbalance ];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
25
pkgs/os-specific/linux/irqbalance/default.nix
Normal file
25
pkgs/os-specific/linux/irqbalance/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "irqbalance-1.1.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "irqbalance";
|
||||||
|
repo = "irqbalance";
|
||||||
|
rev = "a23de3c455b88060620d102f6946b1d8be9e2680";
|
||||||
|
sha256 = "06yq5k5v9wiwajqcjkbkk46g212qx78x323bygnyqshc5s25mp2x";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoconf automake libtool pkgconfig ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
./autogen.sh
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = https://github.com/Irqbalance/irqbalance;
|
||||||
|
description = "A daemon to help balance the cpu load generated by interrupts across all of a systems cpus";
|
||||||
|
license = stdenv.lib.licenses.gpl2;
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
|
@ -9919,6 +9919,8 @@ let
|
||||||
|
|
||||||
ipset = callPackage ../os-specific/linux/ipset { };
|
ipset = callPackage ../os-specific/linux/ipset { };
|
||||||
|
|
||||||
|
irqbalance = callPackage ../os-specific/linux/irqbalance { };
|
||||||
|
|
||||||
iw = callPackage ../os-specific/linux/iw { };
|
iw = callPackage ../os-specific/linux/iw { };
|
||||||
|
|
||||||
jfbview = callPackage ../os-specific/linux/jfbview { };
|
jfbview = callPackage ../os-specific/linux/jfbview { };
|
||||||
|
|
Loading…
Reference in a new issue