From 53e8dc133a49534a6c7fb2af3c2a3b263f12d9f9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 13 Jun 2026 05:00:10 +0200 Subject: [PATCH] nixos/netbox: put all services into a systemd slice Simplifies resource overview and management. --- nixos/modules/services/web-apps/netbox.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/services/web-apps/netbox.nix b/nixos/modules/services/web-apps/netbox.nix index 4b00188dd56b..37a0f76257b7 100644 --- a/nixos/modules/services/web-apps/netbox.nix +++ b/nixos/modules/services/web-apps/netbox.nix @@ -538,6 +538,10 @@ in environment.systemPackages = [ netboxManageScript ]; + systemd.slices.system-netbox = { + description = "Netbox DCIM/IPAM"; + }; + systemd.targets.netbox = { description = "Target for all NetBox services"; wantedBy = [ "multi-user.target" ]; @@ -562,6 +566,7 @@ in StateDirectoryMode = "0750"; Restart = "on-failure"; RestartSec = 30; + Slice = "system-netbox.slice"; EnvironmentFile = cfg.environmentFiles; }; in