add (experimental) pinephone/pda target
this requires cross compilation (particularly of the kernel), which is a bit too slow on this machine to test since it uses qemu. i can maybe switch to an older nixpkgs for the pda build which has the kernel cached... or migrate my desktop to nixos and build the pinephone image there :-)
This commit is contained in:
71
flake.lock
generated
71
flake.lock
generated
@@ -1,5 +1,20 @@
|
||||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"locked": {
|
||||
"lastModified": 1623875721,
|
||||
"narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "f7e004a55b120c02ecb6219596820fcd32ca8772",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
@@ -21,7 +36,42 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"mobile-nixos": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1630497267,
|
||||
"narHash": "sha256-5EGLM0TUOnw+jAqH3UROqDCEwT02huPEDdzCTfDkJqU=",
|
||||
"owner": "ngi-nix",
|
||||
"repo": "mobile-nixos",
|
||||
"rev": "afe022e1898aa05381077a89c3681784e6074458",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "ngi-nix",
|
||||
"repo": "mobile-nixos",
|
||||
"rev": "afe022e1898aa05381077a89c3681784e6074458",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1629048390,
|
||||
"narHash": "sha256-do7HuXFSKyj4ulMlRvGigNZCqOaGD9i0M3OLkFQgEAc=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e41ba38114055832e5ba4a851e9c00149eef3e4a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"ref": "nixos-unstable",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1652975354,
|
||||
"narHash": "sha256-qP1DpEYQdSq7NZ542TSHffIT6xGm7MaSMG9faQWPcg0=",
|
||||
@@ -51,11 +101,28 @@
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"pkgs-mobile": {
|
||||
"locked": {
|
||||
"lastModified": 1624271441,
|
||||
"narHash": "sha256-26QNDCdRE5mPOWYJrPGpVzgrJ3ZxqvWOONfeMsjryz4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "7e567a3d092b7de69cdf5deaeb8d9526de230916",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"rev": "7e567a3d092b7de69cdf5deaeb8d9526de230916",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"pkgs-gitea": "pkgs-gitea"
|
||||
"mobile-nixos": "mobile-nixos",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"pkgs-gitea": "pkgs-gitea",
|
||||
"pkgs-mobile": "pkgs-mobile"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
34
flake.nix
34
flake.nix
@@ -6,11 +6,14 @@
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-21.11";
|
||||
pkgs-gitea.url = "nixpkgs/c777cdf5c564015d5f63b09cc93bef4178b19b01";
|
||||
pkgs-mobile.url = "nixpkgs/7e567a3d092b7de69cdf5deaeb8d9526de230916";
|
||||
# this includes a patch to enable flake support
|
||||
mobile-nixos.url = "github:ngi-nix/mobile-nixos/afe022e1898aa05381077a89c3681784e6074458";
|
||||
home-manager.url = "github:nix-community/home-manager/release-21.11";
|
||||
# XXX colin: is this right?
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
outputs = { self, nixpkgs, pkgs-gitea, home-manager }: {
|
||||
outputs = { self, nixpkgs, pkgs-gitea, pkgs-mobile, mobile-nixos, home-manager }: {
|
||||
nixosConfigurations.uninsane = nixpkgs.lib.nixosSystem {
|
||||
pkgs = import nixpkgs {
|
||||
system = "aarch64-linux";
|
||||
@@ -75,6 +78,35 @@
|
||||
./lappy/hardware.nix
|
||||
];
|
||||
};
|
||||
nixosConfigurations.pda = pkgs-mobile.lib.nixosSystem {
|
||||
# inherit (self.packages.aarch64-linux) pkgs;
|
||||
system = "aarch64-linux";
|
||||
modules = [
|
||||
# ({ pkgs, ... }: {
|
||||
# nixpkgs.config.allowUnfree = true;
|
||||
# })
|
||||
# home-manager.nixosModules.home-manager {
|
||||
# home-manager.useGlobalPkgs = true;
|
||||
# home-manager.useUserPackages = true;
|
||||
# home-manager.users.colin.imports = [ ./colin.nix ];
|
||||
# }
|
||||
# ./configuration.nix
|
||||
# ./users.nix
|
||||
mobile-nixos.nixosModules.pine64-pinephone ({
|
||||
users.users.root.password = "147147";
|
||||
})
|
||||
# ({ pkgs, mobile-nixos, ... }: {
|
||||
# imports = [
|
||||
# (import "${mobile-nixos}/lib/configuration.nix" { device = "pine64-pinephone"; })
|
||||
# ];
|
||||
# })
|
||||
# ({ pkgs, ... }: {
|
||||
# imports = [
|
||||
# <mobnixos>/devices/pine64-pinephone
|
||||
# ];
|
||||
# })
|
||||
];
|
||||
};
|
||||
# packages = nixpkgs.lib.genAttrs nixpkgs.lib.platforms.all (system:
|
||||
# {
|
||||
# pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
|
||||
|
Reference in New Issue
Block a user