nixos-config/systems/x86_64-linux/stargate/services/allods.nix
2026-03-02 18:37:40 +01:00

23 lines
483 B
Nix

{
pkgs,
lib,
config,
...
}: {
systemd.targets.machines.enable = true;
systemd.nspawn."allods" = {
enable = true;
execConfig = {
Boot = true;
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";
};
}