mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 17:57:47 +02: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"
|
"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": {
|
"gnome-shell": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -217,6 +232,7 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"gnome-mobile": "gnome-mobile",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"mobile-nixos": "mobile-nixos",
|
"mobile-nixos": "mobile-nixos",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
url = "github:donovanglover/mobile-nixos";
|
url = "github:donovanglover/mobile-nixos";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gnome-mobile.url = "github:chuangzhu/nixpkgs-gnome-mobile";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, mobile-nixos, ... } @ attrs:
|
outputs = { self, nixpkgs, mobile-nixos, ... } @ attrs:
|
||||||
|
@ -4,7 +4,9 @@ let
|
|||||||
inherit (builtins) attrValues;
|
inherit (builtins) attrValues;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = attrValues self.nixosModules;
|
imports = attrValues self.nixosModules ++ attrValues {
|
||||||
|
inherit (self.inputs.gnome-mobile.nixosModules) gnome-mobile;
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.overlays = attrValues {
|
nixpkgs.overlays = attrValues {
|
||||||
inherit (self.overlays) phinger-cursors;
|
inherit (self.overlays) phinger-cursors;
|
||||||
@ -39,7 +41,6 @@ in
|
|||||||
|
|
||||||
desktop = {
|
desktop = {
|
||||||
phone = true;
|
phone = true;
|
||||||
phosh = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.keyboardBinds = true;
|
hardware.keyboardBinds = true;
|
||||||
|
@ -53,7 +53,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n.inputMethod = mkIf (!phosh) {
|
i18n.inputMethod = mkIf (!phone) {
|
||||||
enabled = "fcitx5";
|
enabled = "fcitx5";
|
||||||
|
|
||||||
fcitx5 = {
|
fcitx5 = {
|
||||||
@ -72,7 +72,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
excludePackages = [ pkgs.xterm ];
|
excludePackages = [ pkgs.xterm ];
|
||||||
|
|
||||||
displayManager.lightdm.enable = mkIf phosh false;
|
displayManager.lightdm.enable = mkIf phone false;
|
||||||
|
|
||||||
desktopManager.phosh = mkIf phosh {
|
desktopManager.phosh = mkIf phosh {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -85,7 +85,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pipewire = mkIf (!phosh) {
|
pipewire = mkIf (!phone) {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
alsa = {
|
alsa = {
|
||||||
@ -96,7 +96,7 @@ in
|
|||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
greetd = mkIf (!container && !phosh) {
|
greetd = mkIf (!container && !phone) {
|
||||||
enable = true;
|
enable = true;
|
||||||
restart = false;
|
restart = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user