23 lines
483 B
Nix
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";
|
|
};
|
|
}
|