Allods
This commit is contained in:
parent
479a630642
commit
6607188f81
1 changed files with 24 additions and 0 deletions
24
systems/x86_64-linux/stargate/services/allods.nix
Normal file
24
systems/x86_64-linux/stargate/services/allods.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue