fix(flatpak): add var persist

This commit is contained in:
514fpv 2024-08-07 22:49:43 +08:00
parent 5d86e40272
commit 8bf10bb62a
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

View file

@ -11,7 +11,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.flatpak.enable = true; services.flatpak.enable = true;
xdg.portal.enable = true; xdg.portal.enable = true;
users.home.persist.directories = [ ".local/share/flatpak" ]; users.home.persist.directories = [ ".local/share/flatpak" ".var" ];
environment.persistence."/nix/persist/fhs".directories = [ "/var/lib/flatpak" ]; environment.persistence."/nix/persist/fhs".directories = [ "/var/lib/flatpak" ];
}; };
} }