From c4a813ac15b390f5897526d8fc3bd89efa497f10 Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Sun, 12 Mar 2023 03:56:51 +0000 Subject: [PATCH] fixed website container stateless ssh-keys --- systems/gerg-desktop/containers/minecraft.nix | 3 +-- systems/gerg-desktop/containers/website.nix | 13 +++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/systems/gerg-desktop/containers/minecraft.nix b/systems/gerg-desktop/containers/minecraft.nix index 024d82e..3b7110c 100644 --- a/systems/gerg-desktop/containers/minecraft.nix +++ b/systems/gerg-desktop/containers/minecraft.nix @@ -5,8 +5,7 @@ _: {...}: { hostBridge = "bridge0"; localAddress = "192.168.1.10/24"; localAddress6 = "2605:59c8:252e:500:200:ff:fe00:10/64"; - bindMounts."/persist/minecraft" = { - mountPoint = "/minecraft"; + bindMounts."/minecraft" = { hostPath = "/persist/minecraft"; isReadOnly = false; }; diff --git a/systems/gerg-desktop/containers/website.nix b/systems/gerg-desktop/containers/website.nix index 920f9df..24b91da 100644 --- a/systems/gerg-desktop/containers/website.nix +++ b/systems/gerg-desktop/containers/website.nix @@ -6,10 +6,15 @@ _: {...}: { hostBridge = "bridge0"; localAddress = "192.168.1.11/24"; localAddress6 = "2605:59c8:252e:500:200:ff:fe00:11/64"; - bindMounts."/persist/website" = { - mountPoint = "/var"; - hostPath = "/persist/website"; - isReadOnly = false; + bindMounts = { + "/var" = { + hostPath = "/persist/website/var"; + isReadOnly = false; + }; + "/etc/ssh" = { + hostPath = "/persist/website/etc/ssh/"; + isReadOnly = false; + }; }; config = { pkgs,