From 315f401d5fcd4f582ce64f6079676610fb8f0bc4 Mon Sep 17 00:00:00 2001 From: derped Date: Sun, 5 Feb 2023 21:53:19 +0100 Subject: [PATCH] Remove nspawn service. --- services/nspawn.nix | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 services/nspawn.nix diff --git a/services/nspawn.nix b/services/nspawn.nix deleted file mode 100644 index e0ebb4b..0000000 --- a/services/nspawn.nix +++ /dev/null @@ -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" ]; - }; - }; - }; - }; -}