hopefully pinephonepro integration
This commit is contained in:
parent
ebac4259e5
commit
fe02bcf9c3
3 changed files with 37 additions and 10 deletions
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -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",
|
||||
|
|
|
|||
10
flake.nix
10
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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(import <mobile-nixos/lib/configuration.nix> { device = "pine64-pinephonepro"; })
|
||||
(import "${inputs.mobile-nixos}/lib/configuration.nix" { device = "pine64-pinephonepro"; })
|
||||
./hardware-configuration.nix
|
||||
<mobile-nixos/examples/phosh/phosh.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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue