irqbalance: using systemd service definition from the package itself
This commit is contained in:
@@ -13,25 +13,10 @@ in
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
systemd.services = {
|
||||
irqbalance = {
|
||||
description = "irqbalance daemon";
|
||||
path = [ pkgs.irqbalance ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.irqbalance}/bin/irqbalance --foreground";
|
||||
CapabilityBoundingSet = "";
|
||||
NoNewPrivileges = "yes";
|
||||
ReadOnlyPaths = "/";
|
||||
ReadWritePaths = "/proc/irq";
|
||||
RestrictAddressFamilies = "AF_UNIX";
|
||||
RuntimeDirectory = "irqbalance/";
|
||||
};
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.irqbalance ];
|
||||
|
||||
systemd.packages = [ pkgs.irqbalance ];
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user