From 7bee8357aa50ef112ef48002c345cc2b24c2b542 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Tue, 11 Jun 2024 11:45:24 +0200 Subject: [PATCH] Reenable container persistence --- hosts/nixos/common/optional/oci.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/nixos/common/optional/oci.nix b/hosts/nixos/common/optional/oci.nix index bee2e06..8370c28 100644 --- a/hosts/nixos/common/optional/oci.nix +++ b/hosts/nixos/common/optional/oci.nix @@ -1,4 +1,13 @@ { virtualisation.oci-containers.backend = "docker"; - # TODO: cache some data? + + environment.persistence = { + "/persist/state".directories = [ + "/var/lib/containers/storage" + ]; + + "/persist/local/cache".directories = [ + "/var/lib/containers/cache" + ]; + }; }