diff --git a/containers/common-container/wayland.nix b/containers/common-container/wayland.nix deleted file mode 100644 index 236019b7..00000000 --- a/containers/common-container/wayland.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ - bindMounts = { - waylandDisplay = rec { - hostPath = "/run/user/1000"; - mountPoint = hostPath; - }; - - x11Display = rec { - hostPath = "/tmp/.X11-unix"; - mountPoint = hostPath; - isReadOnly = true; - }; - }; -} diff --git a/containers/common-config/wayland.nix b/containers/common/wayland.nix similarity index 100% rename from containers/common-config/wayland.nix rename to containers/common/wayland.nix diff --git a/containers/gui.nix b/containers/gui.nix index be0c1869..d781cd1e 100644 --- a/containers/gui.nix +++ b/containers/gui.nix @@ -4,10 +4,6 @@ let in { containers.gui = { - imports = [ - ./common-container/wayland.nix - ]; - privateNetwork = true; ephemeral = true; autoStart = true; @@ -17,6 +13,17 @@ in hostPath = "/home/${VARIABLES.username}/containers/gui"; isReadOnly = false; }; + + waylandDisplay = rec { + hostPath = "/run/user/1000"; + mountPoint = hostPath; + }; + + x11Display = rec { + hostPath = "/tmp/.X11-unix"; + mountPoint = hostPath; + isReadOnly = true; + }; }; config = { pkgs, lib, ... }: {