Nixpkgs overlay for GNOME Shell on mobile
Find a file
2024-11-09 05:36:25 +08:00
nixpkgs fix build for 46-mobile.1 due to nixpkgs' gnome 47 update 2024-11-09 05:26:08 +08:00
default.nix add update script 2023-06-09 22:24:02 +08:00
flake.nix split 2023-04-26 06:11:34 +08:00
LICENSE bsd0 2024-01-09 18:03:25 +08:00
module.nix remove all gnome scopes 2024-11-09 05:36:25 +08:00
overlay.nix fix build for 46-mobile.1 due to nixpkgs' gnome 47 update 2024-11-09 05:26:08 +08:00
README.md 46-mobile-0 2024-07-18 03:45:20 +08:00
update.sh remove all gnome scopes 2024-11-09 05:36:25 +08:00

nixpkgs-gnome-mobile

A Nixpkgs overlay providing patches, and a NixOS module providing useful configurations, for running GNOME Shell on mobile.

Usage

For using with Nixpkgs, add ./overlay.nix or nixpkgs-gnome-mobile.overlays.default to your Nixpkgs overlays. For using with NixOS, add ./module.nix to your imports in configuration.nix, or nixpkgs-gnome-mobile.nixosModules.gnome-mobile to your modules in nixpkgs.lib.nixosSystem.

This overlay targets the nixos-unstable channel. Please let me know if anything breaks on the latest nixos-unstable.

FAQ

Do input methods work?

Yes, only IBus works. You have to be careful not to set the *_IM_MODULE env vars (done in ./module.nix), or the keyboard won't pop up. Example NixOS configuration:

i18n.inputMethod.enable = true;
i18n.inputMethod.type = "ibus";
i18n.inputMethod.ibus.engines = with pkgs.ibus-engines; [ libpinyin anthy ];

Add input methods in Settings > Keyboard, or with the following command:

$ dconf write /org/gnome/desktop/input-sources/sources "[('xkb', 'us'), ('ibus', 'libpinyin'), ('ibus', 'anthy')]"

For the Japanese IME anthy, you may also want to change the input mode from Latin to Kana:

$ dconf write /org/freedesktop/ibus/engine/anthy/common/input-mode 0 # Hiragana

Debugging gnome-shell

The Wayland compositor can be started directly from the Linux console. The log is actually verbose enough to identify problems, but for unknown reasons you may have to redirect the stderr to see it:

$ gnome-shell --wayland 2> gnome-shell.log