From d5a487ececa689994b98b173e32f4fe8c3e852f0 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Thu, 18 Jan 2024 08:09:06 +0100 Subject: [PATCH] Set up podman persistence --- hosts/nixos/common/optional/podman.nix | 11 +++++++++++ hosts/nixos/lapetus/default.nix | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/hosts/nixos/common/optional/podman.nix b/hosts/nixos/common/optional/podman.nix index 36f96c5..31ab4d0 100644 --- a/hosts/nixos/common/optional/podman.nix +++ b/hosts/nixos/common/optional/podman.nix @@ -7,4 +7,15 @@ oci-containers.backend = "podman"; }; + + + environment.persistence = { + "/persist/state".directories = [ + "/var/lib/containers/storage" + ]; + + "/persist/local/cache".directories = [ + "/var/lib/containers/cache" + ]; + }; } diff --git a/hosts/nixos/lapetus/default.nix b/hosts/nixos/lapetus/default.nix index 14e59b1..b950492 100644 --- a/hosts/nixos/lapetus/default.nix +++ b/hosts/nixos/lapetus/default.nix @@ -5,7 +5,7 @@ ../common/optional/services/slambda.nix ./services/syncthing.nix - ./services/whoogle.nix + # ./services/whoogle.nix ./filesystems ./hardware ];