add back quadphone

This commit is contained in:
Henry Hiles 2026-10-27 19:58:27 -04:00
commit 7667ee3d32
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
5 changed files with 133 additions and 3 deletions

View file

@ -0,0 +1,11 @@
{
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
nixpkgs.overlays = [
(_: super: {
# Because of https://github.com/NixOS/nixpkgs/pull/378579
qemu = super.qemu.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [ ./qemu.patch ];
});
})
];
}

View file

@ -0,0 +1,16 @@
diff --git a/util/rcu.c b/util/rcu.c
index fa32c942e4..8ae899f74e 100644
--- a/util/rcu.c
+++ b/util/rcu.c
@@ -409,12 +409,6 @@ static void rcu_init_complete(void)
qemu_event_init(&rcu_call_ready_event, false);
- /* The caller is assumed to have BQL, so the call_rcu thread
- * must have been quiescent even after forking, just recreate it.
- */
- qemu_thread_create(&thread, "call_rcu", call_rcu_thread,
- NULL, QEMU_THREAD_DETACHED);
-
rcu_register_thread();
}

View file

@ -0,0 +1 @@
{ nixpkgs.config.allowBroken = true; }

View file

@ -0,0 +1 @@
{ documentation.man.generateCaches = false; }

38
modules/mobile/phosh.nix Normal file
View file

@ -0,0 +1,38 @@
{ pkgs, ... }:
{
programs = {
feedbackd.enable = true;
calls.enable = true;
firefox.package = pkgs.firefox-mobile;
};
environment.systemPackages = with pkgs; [
chatty
];
nixpkgs.config.permittedInsecurePackages = [
"olm-3.2.16"
];
networking.modemmanager.enable = true;
services = {
geoclue2 = {
enable = true;
whitelistedAgents = [ "sm.puri.Phosh" ];
appConfig."sm.puri.Phosh" = {
isAllowed = true;
isSystem = true;
};
};
xserver.desktopManager.phosh = {
enable = true;
group = "users";
user = "quadradical";
};
};
users.users.geoclue.extraGroups = [ "networkmanager" ];
location.provider = "geoclue2";
}