From 6c0944bdc06c6c9a31ebe6f4fc2cd0fb842eb2be Mon Sep 17 00:00:00 2001 From: dish Date: Wed, 20 May 2026 11:07:30 -0400 Subject: [PATCH] nixos/anubis: make all instances part of a system slice Helps with resource management, and just makes things a bit cleaner and more idiomatic, since generally slices are used to manage groups of related processes --- nixos/modules/services/networking/anubis.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/services/networking/anubis.nix b/nixos/modules/services/networking/anubis.nix index 5c207a27ec25..08f8e8bc87d9 100644 --- a/nixos/modules/services/networking/anubis.nix +++ b/nixos/modules/services/networking/anubis.nix @@ -374,6 +374,10 @@ in anubis = { }; }; + systemd.slices.system-anubis = { + description = "Anubis AI Firewall System Slice"; + documentation = [ "https://anubis.techaro.lol" ]; + }; systemd.services = lib.mapAttrs' ( name: instance: lib.nameValuePair "${instanceName name}" { @@ -396,6 +400,7 @@ in ); serviceConfig = { + Slice = "system-anubis.slice"; User = instance.user; Group = instance.group; DynamicUser = true;