Remove nspawn service.
This commit is contained in:
parent
81b7af1fc0
commit
315f401d5f
1 changed files with 0 additions and 28 deletions
|
@ -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" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue