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
This commit is contained in:
dish
2026-05-20 11:07:30 -04:00
parent 15e1e71ab1
commit 6c0944bdc0

View File

@@ -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;