159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
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 ];
|
|
|
|
};
|
|
|
|
}
|