meta: Add attempt at using gnome-mobile

This was my attempt at using GNOME Mobile. It works inside the x86_64
virtual machine but fails when reaching "Started Display Manager" on the
actual device.
This commit is contained in:
Donovan Glover 2024-06-27 22:50:12 -04:00
parent d5f8261627
commit 961c2f1b62
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
4 changed files with 25 additions and 6 deletions

16
flake.lock generated
View File

@ -146,6 +146,21 @@
"type": "github"
}
},
"gnome-mobile": {
"locked": {
"lastModified": 1714963121,
"narHash": "sha256-L5+alPQZ7oW9Sjf2y4EN6SnXxG0rhexqe1u9LbtERBA=",
"owner": "chuangzhu",
"repo": "nixpkgs-gnome-mobile",
"rev": "56824cb5737d0870ec8ac56c3013d9ae85ee8a98",
"type": "github"
},
"original": {
"owner": "chuangzhu",
"repo": "nixpkgs-gnome-mobile",
"type": "github"
}
},
"gnome-shell": {
"flake": false,
"locked": {
@ -217,6 +232,7 @@
},
"root": {
"inputs": {
"gnome-mobile": "gnome-mobile",
"home-manager": "home-manager",
"mobile-nixos": "mobile-nixos",
"nixpkgs": "nixpkgs",

View File

@ -24,6 +24,8 @@
url = "github:donovanglover/mobile-nixos";
flake = false;
};
gnome-mobile.url = "github:chuangzhu/nixpkgs-gnome-mobile";
};
outputs = { self, nixpkgs, mobile-nixos, ... } @ attrs:

View File

@ -4,7 +4,9 @@ let
inherit (builtins) attrValues;
in
{
imports = attrValues self.nixosModules;
imports = attrValues self.nixosModules ++ attrValues {
inherit (self.inputs.gnome-mobile.nixosModules) gnome-mobile;
};
nixpkgs.overlays = attrValues {
inherit (self.overlays) phinger-cursors;
@ -39,7 +41,6 @@ in
desktop = {
phone = true;
phosh = true;
};
hardware.keyboardBinds = true;

View File

@ -53,7 +53,7 @@ in
};
};
i18n.inputMethod = mkIf (!phosh) {
i18n.inputMethod = mkIf (!phone) {
enabled = "fcitx5";
fcitx5 = {
@ -72,7 +72,7 @@ in
enable = true;
excludePackages = [ pkgs.xterm ];
displayManager.lightdm.enable = mkIf phosh false;
displayManager.lightdm.enable = mkIf phone false;
desktopManager.phosh = mkIf phosh {
enable = true;
@ -85,7 +85,7 @@ in
};
};
pipewire = mkIf (!phosh) {
pipewire = mkIf (!phone) {
enable = true;
alsa = {
@ -96,7 +96,7 @@ in
pulse.enable = true;
};
greetd = mkIf (!container && !phosh) {
greetd = mkIf (!container && !phone) {
enable = true;
restart = false;