mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-23 14:18:37 +01:00
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:
parent
d5f8261627
commit
961c2f1b62
16
flake.lock
generated
16
flake.lock
generated
@ -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",
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user