Only import internal container configs

Sharing external container configs seems non-trivial and, although
possible, it may be better to simply manage containers independently.
This commit is contained in:
Donovan Glover 2023-06-12 18:48:49 -04:00
parent bb6d0afc93
commit 8f131a64e7
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 11 additions and 18 deletions

View File

@ -1,14 +0,0 @@
{
bindMounts = {
waylandDisplay = rec {
hostPath = "/run/user/1000";
mountPoint = hostPath;
};
x11Display = rec {
hostPath = "/tmp/.X11-unix";
mountPoint = hostPath;
isReadOnly = true;
};
};
}

View File

@ -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, ... }: {