{ impermanence, ... }:
{
  imports = [ impermanence.nixosModule ];

  environment.persistence."/persist/data" = {
    hideMounts = true;
    directories = [
      "/etc/NetworkManager/system-connections"
      "/var/lib/bluetooth"
      "/etc/ssl/certs"
    ];
    files = [ ];

    users.lilith = {
      directories = [
        ".config/syncthing"
        ".config/sops"
        ".config/keepassxc"
        ".config/vesktop"
        ".config/Signal"
        ".gnupg"
        ".ssh"

        ".thunderbird"
        ".mozilla"
        ".zen"

        "nixos"
        "sync"
        "code"
        ".keepass"
        ".local/share/PrismLauncher"
        ".local/share/Steam"
        ".local/share/lutris"
        ".local/share/games"
      ];
      files = [ ];
    };
  };

  environment.persistence."/persist/cache" = {
    hideMounts = true;
    directories = [
      "/root/.cache/nix"
      "/var/lib/btrfs"
      "/var/lib/nixos"
      "/var/lib/systemd/backlight"
      "/var/lib/systemd/timers"
      "/var/log"
    ];
    files = [ "/etc/machine-id" ];

    users.lilith = {
      directories = [
        ".cache/nix"
        ".cache/keepassxc"
        ".cargo"
        ".local/state/wireplumber"
      ];
      files = [ ];
    };
  };
}
