GermanBread / declarative-flatpak

126 stars 4 forks source link

is there a delay? #15

Closed andreyadrian closed 1 year ago

andreyadrian commented 1 year ago

idk if im getting crazy but it has happened to me more than once, i added a new flatpak, i $ sudo nixos-rebuild switch and $ reboot once powered on i search for the flatpak is not there, i try to read the module.nix to see if something is off, time passes, i give up on that and move on to tinker with other parts of the configuration file , i $ sudo nixos-rebuild switch and $ reboot, and noticed that the flatpak i was trying to add hours ago is now there,


i have experienced that twice when trying to add flatpaks, and now i have experenced it again when trying to add global overrides:

    overrides = {
            "global" = {
                filesystems = [
                    "/home/kura/.local/share/fonts"
                    "/home/kura/.icons"
                ];
        };
    };

i was doing $ flatpak info --show-permission org.mozilla.firefox, just to test if global worked, didnt worked "/home/kura/.local/share/fonts" & "/home/kura/.icons" were missing i try to figure it out i give up i move on and tinker with with kmonad config i $ sudo nixos-rebuild switch and $ reboot, with the goal of checking my kmonad config i run $ flatpak info --show-permission org.mozilla.firefox, just in case is now there:

[kura@tux:~]$ flatpak info --show-permissions org.mozilla.firefox
[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;pcsc;cups;
devices=all;
features=devel;
filesystems=xdg-download;/home/kura/.local/share/fonts;/run/.heim_org.h5l.kcm-socket;/home/kura/.icons;
persistent=.mozilla;

it is indeed showing up filesystems=xdg-download;/home/kura/.local/share/fonts;/run/.heim_org.h5l.kcm-socket;/home/kura/.icons;

i try with a different one $ flatpak info --show-permissions io.gitlab.librewolf-community

[kura@tux:~]$ flatpak info --show-permissions io.gitlab.librewolf-community
[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;fallback-x11;pcsc;cups;
devices=dri;
filesystems=xdg-download;xdg-run/pipewire-0;/home/kura/.local/share/fonts;/home/kura/.icons;
persistent=.librewolf;

also showing up.


im just saying because it has happened 3 times already just to see if somebody has experienced soemthing similar, it could also be something wrong with my computer, or even the deduplicate = true; not sure:

Description

Try to save space by deduplicating generations.

May take a very long time.


more context:

  services.flatpak = {

    enable = true;

    deduplicate = true;

    overrides = {
            "global" = {
                filesystems = [
                    "/home/kura/.local/share/fonts"
                    "/home/kura/.icons"
                ];
        };
    };

    remotes = {
      "flathub" = "https://dl.flathub.org/repo/flathub.flatpakrepo";
    };

    packages = [
      "flathub:app/com.github.tchx84.Flatseal//stable"

      "flathub:app/io.gitlab.librewolf-community//stable"
      "flathub:app/org.mozilla.firefox//stable"  
    ...
GermanBread commented 1 year ago

is there a delay?

Yes. The flatpaks have to be downloaded.

I'm trying to mitigate this in the future, but for now you will have to account for this.

Cheers