mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-29 10:09:30 +01:00
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:
parent
bb6d0afc93
commit
8f131a64e7
@ -1,14 +0,0 @@
|
||||
{
|
||||
bindMounts = {
|
||||
waylandDisplay = rec {
|
||||
hostPath = "/run/user/1000";
|
||||
mountPoint = hostPath;
|
||||
};
|
||||
|
||||
x11Display = rec {
|
||||
hostPath = "/tmp/.X11-unix";
|
||||
mountPoint = hostPath;
|
||||
isReadOnly = true;
|
||||
};
|
||||
};
|
||||
}
|
@ -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, ... }: {
|
||||
|
Loading…
Reference in New Issue
Block a user