PinePhone: Difference between revisions

From NixOS Wiki
imported>Tom
m Document how to enable geoclue
imported>Tom
Note prerequisites
Line 2: Line 2:


This guide is discusses how to use [https://puri.sm/posts/phosh-overview/ Phosh], the GNOME-derived UI used by Librem and Mobian.
This guide is discusses how to use [https://puri.sm/posts/phosh-overview/ Phosh], the GNOME-derived UI used by Librem and Mobian.
== Requirements ==
This document assumes you have set up NixOS on your PinePhone, as described in https://mobile.nixos.org/getting-started.html
Beware known issues:
* [https://github.com/NixOS/mobile-nixos/issues/342 boot.growPartition has no effect]
* [https://github.com/NixOS/mobile-nixos/issues/373 how to cross-compile]
* [https://github.com/NixOS/mobile-nixos/issues/372 build.disk-image via binfmt taking 40mins doing a find/du on my /nix/store]


== Status ==
== Status ==

Revision as of 07:53, 11 July 2021

PinePhone is supported by Mobile NixOS: https://mobile.nixos.org/devices/pine64-pinephone.html

This guide is discusses how to use Phosh, the GNOME-derived UI used by Librem and Mobian.

Requirements

This document assumes you have set up NixOS on your PinePhone, as described in https://mobile.nixos.org/getting-started.html

Beware known issues:

Status

Phosh

https://github.com/NixOS/mobile-nixos/pull/352 is a PR to add a phosh-demo to mobile-nixos. The author of this wiki page uses this PR.

Calling

Working with:

environment.systemPackages = [ pkgs.calls ];
services.dbus.packages = [ pkgs.callaudiod ];

SMS

Working with:

MMS

Unsupported. See https://source.puri.sm/Librem5/chatty/-/issues/30

Camera

Working with pkgs.megapixels. Front camera causes it to crash? Works in other distros.

Mobile internet

Working (imperative), with:

$ nmcli c add type gsm ifname cdc-wdm0 con-name $PROVIDER apn $APN

Other distributions use Librem's fork of gnome-control-center which has a mobile internet panel. https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/583 tracks the upstreaming of this functionality.

GPS

Working with GNOME applications with:

services.geoclue2.enable = true;

Disk encryption

See [1]

Alarm clocks

Not working:

Recommended applications

Not all applications scale down well to mobiles.

  • pkgs.gnome.gnome-chess
  • pkgs.gnome.gnome-podcasts
  • pkgs.portfolio-filemanager

See also