From 8683f91ff3bb5ec76de5e3e3c6135bb3452e2251 Mon Sep 17 00:00:00 2001 From: caem Date: Tue, 14 Jan 2025 00:26:58 +0100 Subject: [PATCH] persist libvirt shit --- modules/system/virtualisation.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/system/virtualisation.nix b/modules/system/virtualisation.nix index 891a978..94ff8a4 100644 --- a/modules/system/virtualisation.nix +++ b/modules/system/virtualisation.nix @@ -5,6 +5,12 @@ programs.virt-manager.enable = true; users.users.hu.extraGroups = [ "libvirtd" ]; + environment.persistence."/nix/persist".directories = [ + "/var/lib/libvirt" + "/var/log/libvirt" + "/var/cache/libvirt" + "/var/log/swtpm/libvirt" + ]; home-manager.users.hu = { dconf.settings = {