not working

This commit is contained in:
Clayton Hickey 2026-03-12 22:20:44 -04:00
commit dbf7da4c57
Signed by: clay53
SSH key fingerprint: SHA256:fjW4+nfPltYzrJ4uZlYQvrYMshxHnah2S4qM8Hth9HQ
5 changed files with 115 additions and 0 deletions

2
README.md Normal file
View file

@ -0,0 +1,2 @@
# Pinephone Pro NixOS
A minimal configuration to get everything on the Pinephone Pro working and upstream to nixpkgs

39
configuration.nix Normal file
View file

@ -0,0 +1,39 @@
{inputs, pkgs, lib, ...}:
{
config = {
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
nixpkgs.overlays = [
inputs.pinephonepro-nixos.overlays.default
];
boot.kernelPackages = pkgs.linuxPackages_pinephonepro;
boot.loader.systemd-boot.enable = true;
networking = {
hostName = "pinephonepro";
networkmanager.enable = true;
};
services.openssh.enable = true;
users.users.pinephonepro = {
isNormalUser = true;
description = "Default Pinephone Pro User";
extraGroups = [
"networkmanager"
"wheel"
];
};
environment.systemPackages = with pkgs; [
neovim
fastfetch
];
programs.git.enable = true;
system.stateVersion = "25.11";
};
}

27
flake.lock generated Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1773068389,
"narHash": "sha256-vMrm7Pk2hjBRPnCSjhq1pH0bg350Z+pXhqZ9ICiqqCs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "44bae273f9f82d480273bab26f5c50de3724f52f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

25
flake.nix Normal file
View file

@ -0,0 +1,25 @@
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";
};
outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.aarch64-linux;
in
{
packages.aarch64-linux.linux-pinephonepro = pkgs.callPackage ./kernel.nix {};
overlays.default = final: prev: {
linuxPackages_pinephonepro = prev.linuxPackagesFor self.packages.aarch64-linux.linux-pinephonepro;
};
nixosConfigurations.pinephonepro = nixpkgs.lib.nixosSystem {
specialArgs.inputs.pinephonepro-nixos = self;
modules = [
./configuration.nix
];
};
packages.aarch64-linux.pinephonepro-iso = self.nixosConfigurations.pinephonepro.config.system.build.images.iso;
};
}

22
kernel.nix Normal file
View file

@ -0,0 +1,22 @@
{
lib,
buildLinux,
fetchgit,
...
}@args:
let
version = "6.19.0";
modDirVersion = "6.19.0";
in
buildLinux (
args
//
{
inherit version modDirVersion;
pname = "linux-pinephonepro";
src = fetchgit {
url = "https://codeberg.org/megi/linux.git";
sha256 = "sha256-axwiWkZeMwbpBc1NGqOKk6i3iW3ndVqAtDJi/+ww6wI=";
};
}
)