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" + ]; + }; }