mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
21 lines
366 B
Nix
21 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 ];
|
|
|
|
};
|
|
|
|
}
|