From 109d2c6c9734d22c3d29c28d219b3627943884c2 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Mon, 26 Jul 2021 23:53:51 +0300 Subject: [PATCH] Persist libvirt --- profiles/virtualisation.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/profiles/virtualisation.nix b/profiles/virtualisation.nix index 9bf7d73..4cfdde9 100644 --- a/profiles/virtualisation.nix +++ b/profiles/virtualisation.nix @@ -3,6 +3,12 @@ virtualisation.libvirtd = { enable = config.deviceSpecific.isHost; }; + + persist.state.directories = [ + "/var/lib/docker" + "/var/lib/libvirt" + ]; + virtualisation.spiceUSBRedirection.enable = true; networking.nat = {