This commit is contained in:
Aleksandr Lebedev 2026-03-02 17:16:13 +01:00
parent 479a630642
commit 6607188f81

View file

@ -0,0 +1,24 @@
{
pkgs,
lib,
config,
...
}: {
systemd.targets.machines.enable = true;
systemd.nspawn."allods" = {
enable = true;
execConfig = {
Boot = true;
CapabilityBoundingSet = "";
PrivateUsers = true;
};
filesConfig = { BindReadOnly = [ "/etc/resolv.conf:/etc/resolv.conf" ]; };
networkConfig = { Private = false; };
};
systemd.services."systemd-nspawn@allods" = {
enable = true;
requiredBy = [ "machines.target" ];
overrideStrategy = "asDropin";
};
}