That would be perfect, thank you in advance! I have no idea how many ProtonMail users there is out here, but the support for it has been missing from SFOS for too long time.
Alternative option for what?? I’m already a ProtonMail Plus subscriber and I already use Bridge on my Laptop and now on my phone
Fine and it is also fine that you share your know-how with a wiki tutorial. Just remember that it such a service require a monthly subscription (or year or multi-years subscription). Nothing bad about that and I like Proton services. However, it always important to consider a open-source alternative.
Why? For the same reason (vendor lock-in) you are struggling with SFOS, for example…
As far as I can tell, Proton’s services are open source in most parts:
With E-Mails, you basically always have “vendor lock-in” except if you host your own E-Mail-Server, which many of us don’t have the resources or the knowledge for.
Oh did we? Then I’m sorry, I misunderstood your point.
You are right, you can absolutely host your own E-Mail server at a hosting provider. What I meant was really hosting it by yourself (e. g. on an old computer in your basement,…)
Thank you for the instructions! I use my Gemini PDA to be able to leave the work laptop at home on leisure trips, the nix package manager gives a lot more tools for me on the go. For example I was now able to install MySQL and connect to remote databases while I am on a trip just with the Gemini PDA.
The instructions didn’t yet have a way to automatically mount the .nix-store-image under /nix after reboot, but adding following line to the /etc/fstab was enough for auto mount:
/home/defaultuser/.nix-store-image /nix ext4 defaults 0 0
For some reason the installer did not generate .profile file, so any of the nix-* tools were not usable even after terminal reboot. After manually sourcing the configuration shell script everything worked as it should:
source .nix-profile/etc/profile.d/nix.sh
To keep that persistent even after terminal boot, I created /home/defaultuser/.profile with the same line.
Thank you again for making the Gemini PDA even more powerful little pocket computer on the go for me
I wanted to point out that there have been some significant efforts to address this with the chum work to get QT 5.15 and a significant number of kde libs and apps running via the obs at build.sailfish.org.
That work could be built on to get much more modern packages into chum. The main work requires a bit of study of the way @rinigus and @piggz setup the builds, but even an rpm packaging noob like me was able to make some contributions. Developer Announcement - Qt 5.15 available for app developer testing
Obviously, this is primarily aimed at kde apps, but can be used to support a lot of apps. It’s not just ‘fire and go’ installs, but editing some spec files is certainly a lot less work than building by hand.
That does not detract from the idea of having nixpkgs running on sfos. I’d just like to point out that systematic efforts to have automated builds of more modern apps has been don.
PS. I was an early Nixos user. But, not anymore
If anybody will read this again.
I created 12GB partition on SD card and mounted it to /nix
.
I added the following entry to /etc/fstab
:
UUID=_fs_uuid_ /nix ext4 defaults,noatime,errors=remount-ro 0 0
That is a great idea. My SD card is encrypted, so auto-mounting doesn’t work unfortunately. Thanks for the tip.
Actually I created 2 partitions with FS on the SD card. 1 is for nix and 2nd one is for personal usage. I encrypted the one for personal stuff in GUI.
P.S.: I’m quite surprise there isn’t solution for auto-mount of encrypted sd-card partition e.g. the key could be stored in phone encrypted storage …
I have a problem while making that partition automount (the /nix partition) via entry into /etc/fstab. When I put the config as follows:
UUID=1178f48d-7e43-4814-80b8-a7fdf9af2d4b /nix ext4 defaults,noatime,errors=remount-ro 0 0
my Sailfish OS ain’t booting and I needed to do a reflash. Any suggestions would be appreciated.
I’ve also tried via the following entry:
/home/defaultuser/.nix-store-image /nix ext4 defaults 0 0
…still with the same result - black screen after the Sailfish logo and a re-flash needed afterwards…
Oh man, that sounds annoying. I never dared to touch that fstab file for this exact reason and thus also didn’t include it in these instructions.
Maybe make a separate systemd service that runs as root and mounts the image. That might very well fail but then at least not kill the system.
Hi,
I think you have to use full path as in your last example.
My understanding is that UUID will not work because you are mounting file not real block device.
Also I would recommend to:
- Place your entry at the end of /etc/fstab e.g. your /home needs to be mounted first.
- You can also use
nofail
in fstab. The phone should still boot even if mount operation fails. - You can try to include
loop
to indicate loop device.
Example:
/home/username/.nix-store-image /nix ext4 loop,nofail,defaults 0 0
You can test mount before reboot e.g. unmout /nix and try to run mount -a
.
P.S.: I didn’t do any testing of above commands so I cannot guarantee that it will work 100%. Just trying to give you some pointers … GL
Hello all,
I’ve tried to install the nix package manager step by step by the given instructions. It didn’t really worked out…
I was able to do everything without errors. But after dowloading sh <(curl -L https://nixos.org/nix/install) --no-daemon
the script returns me
Installation finished! To ensure that the necessary environment
variables are set, please add the line.
to your shell profile (e.g. ~/.profile).
This file does not exist in my directory and I actually don’t believe, that I have to insert a dot
What exactly does this profile file and how can I ensure to use “nix” and with “tab” the autocompletion to any nix-related command?
Thanks!
The dot adds the current working directory to your environment variables, it is a common Linux thing.
“.” is equivalent of “source” in Linux, but it needs to be followed by a path to a script to actually do anything.
See Environment Variables - Nix Reference Manual
Thanks! It’s working now!