1
0
Fork 0

Remove nspawn service.

This commit is contained in:
Kevin Baensch 2023-02-05 21:53:19 +01:00
parent 81b7af1fc0
commit 315f401d5f
Signed by: derped
GPG Key ID: C0F1D326C7626543
1 changed files with 0 additions and 28 deletions

View File

@ -1,28 +0,0 @@
{ config, lib, ... }:
with lib;
mkIf (elem "nspawn" config.machine.services) {
systemd = let
fn = import ../fn.nix { inherit lib; };
in {
nspawn = recursiveUpdate (listToAttrs (
(map (
name: {
name = name;
value = { networkConfig.VirtualEthernet = "no"; };
}
)
(fn.lst { p = /var/lib/machines; t = "directory"; b = false; })
))) {
"64Arch" = {
filesConfig = {
"BindReadOnly" = ["/tmp/.X11-unix"];
"Bind" = ["/dev/snd" "/dev/dri"];
# TODO: Add this to service overrides
# "DeviceAllow" = [ "/dev/dri/renderD128" ];
};
};
};
};
}