From 3140302db9a3c596fd7f7b89b55d9dbe7bc2e251 Mon Sep 17 00:00:00 2001 From: Cilly Leang Date: Tue, 17 Mar 2026 14:45:12 +1100 Subject: [PATCH] containers/diamond: bind mount data dir --- containers/diamond/configuration.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/containers/diamond/configuration.nix b/containers/diamond/configuration.nix index 7ae4225..8cd9de1 100644 --- a/containers/diamond/configuration.nix +++ b/containers/diamond/configuration.nix @@ -1,16 +1,15 @@ { config, lib, ... }: { system.stateVersion = "25.11"; - systemd.tmpfiles.rules = [ - "d /persist/vaultwarden 755 vaultwarden vaultwarden" - ]; + fileSystems."/var/lib/private" = { + device = "/persist"; + fsType = "none"; + options = [ "bind" ]; + }; networking.firewall.allowedTCPPorts = [ 8000 ]; networking.firewall.allowedUDPPorts = [ 8000 ]; services.vaultwarden = { enable = true; domain = "diamond.local.lava.moe"; - config = { - DATA_FOLDER = "/persist/vaultwarden"; - }; }; }