From fe02bcf9c3aa060c0c0ee5a3b98ca33b89107f12 Mon Sep 17 00:00:00 2001 From: clay53 Date: Sun, 8 Mar 2026 15:11:26 -0400 Subject: [PATCH] hopefully pinephonepro integration --- flake.lock | 17 +++++++++++++++++ flake.nix | 10 ++++++++++ pinephonepro/configuration.nix | 20 ++++++++++---------- 3 files changed, 37 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index 4a661b6..0d529d9 100644 --- a/flake.lock +++ b/flake.lock @@ -198,6 +198,22 @@ "type": "github" } }, + "mobile-nixos": { + "flake": false, + "locked": { + "lastModified": 1772289954, + "narHash": "sha256-iDdtwk/dFb6AsXMtcOpZixxXl6C1HNUPe6cglxxHO7M=", + "owner": "mobile-nixos", + "repo": "mobile-nixos", + "rev": "1a9e0af79dc7b5e29ed772f1a8a76fcbd9d45fdf", + "type": "github" + }, + "original": { + "owner": "mobile-nixos", + "repo": "mobile-nixos", + "type": "github" + } + }, "nix-bwrapper": { "inputs": { "nixpkgs": "nixpkgs_2", @@ -450,6 +466,7 @@ "home-manager": "home-manager", "languini": "languini", "mapnix": "mapnix", + "mobile-nixos": "mobile-nixos", "nix-bwrapper": "nix-bwrapper", "nix-minecraft": "nix-minecraft", "nixpkgs": "nixpkgs_6", diff --git a/flake.nix b/flake.nix index dd45eeb..a62dd1a 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,10 @@ }; nix-minecraft.url = "github:Infinidoge/nix-minecraft"; nix-bwrapper.url = "github:Naxdy/nix-bwrapper"; + mobile-nixos = { + url = "github:mobile-nixos/mobile-nixos"; + flake = false; + }; }; outputs = { self, nixpkgs, ... }@inputs: { nixosConfigurations.clhickey-nixos = nixpkgs.lib.nixosSystem { @@ -43,6 +47,12 @@ ./loadedskypotato/configuration.nix ]; }; + nixosConfigurations.pinephonepro = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs; }; + modules = [ + ./pinephonepro/configuration.nix + ]; + }; }; } diff --git a/pinephonepro/configuration.nix b/pinephonepro/configuration.nix index 4adcf09..c5459dc 100644 --- a/pinephonepro/configuration.nix +++ b/pinephonepro/configuration.nix @@ -1,10 +1,10 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, inputs, ... }: { imports = [ - (import { device = "pine64-pinephonepro"; }) + (import "${inputs.mobile-nixos}/lib/configuration.nix" { device = "pine64-pinephonepro"; }) ./hardware-configuration.nix - + "${inputs.mobile-nixos}/examples/phosh/phosh.nix" ]; networking.hostName = "pinephonepro"; @@ -14,17 +14,17 @@ # # Use Network Manager - networking.wireless.enable = false; networking.networkmanager.enable = true; - # Use PulseAudio - hardware.pulseaudio.enable = true; - # Enable Bluetooth hardware.bluetooth.enable = true; - - # Bluetooth audio - hardware.pulseaudio.package = pkgs.pulseaudioFull; + + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + }; # Enable power management options powerManagement.enable = true;