mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
c24a2d3e32
otherwise the service is never started by us.
24 lines
370 B
Nix
24 lines
370 B
Nix
#
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.services.irqbalance;
|
|
|
|
in
|
|
{
|
|
options.services.irqbalance.enable = mkEnableOption "irqbalance daemon";
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ pkgs.irqbalance ];
|
|
|
|
systemd.services.irqbalance.wantedBy = ["multi-user.target"];
|
|
|
|
systemd.packages = [ pkgs.irqbalance ];
|
|
|
|
};
|
|
|
|
}
|