diff options
author | snicket2100 <57048005+snicket2100@users.noreply.github.com> | 2020-02-02 18:09:45 +0100 |
---|---|---|
committer | snicket2100 <57048005+snicket2100@users.noreply.github.com> | 2020-02-02 18:09:45 +0100 |
commit | 04bfeeac79b0dc857b89d9ef43ff6f1ddd349cff (patch) | |
tree | 274774a0eac0116f1eecba1184bf2c669b3e1c6f /nixos/modules/services | |
parent | a5ab9470033a550bf510c26fd68a99f21586b39b (diff) |
irqbalance: using systemd service definition from the package itself
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/hardware/irqbalance.nix | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/nixos/modules/services/hardware/irqbalance.nix b/nixos/modules/services/hardware/irqbalance.nix index 39c139576bfa4..c07e35943f2c5 100644 --- a/nixos/modules/services/hardware/irqbalance.nix +++ b/nixos/modules/services/hardware/irqbalance.nix @@ -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 ]; + }; } |