mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-03 20:49: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
|
in
|
||||||
{
|
{
|
||||||
containers.gui = {
|
containers.gui = {
|
||||||
imports = [
|
|
||||||
./common-container/wayland.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
ephemeral = true;
|
ephemeral = true;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
@ -17,6 +13,17 @@ in
|
|||||||
hostPath = "/home/${VARIABLES.username}/containers/gui";
|
hostPath = "/home/${VARIABLES.username}/containers/gui";
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
waylandDisplay = rec {
|
||||||
|
hostPath = "/run/user/1000";
|
||||||
|
mountPoint = hostPath;
|
||||||
|
};
|
||||||
|
|
||||||
|
x11Display = rec {
|
||||||
|
hostPath = "/tmp/.X11-unix";
|
||||||
|
mountPoint = hostPath;
|
||||||
|
isReadOnly = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = { pkgs, lib, ... }: {
|
config = { pkgs, lib, ... }: {
|
||||||
|
Loading…
Reference in New Issue
Block a user