mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2025-01-09 18:39:47 +01:00
Drop default.nix
This commit is contained in:
parent
cde49af7e7
commit
c04cbde738
1 changed files with 0 additions and 38 deletions
38
default.nix
38
default.nix
|
@ -1,38 +0,0 @@
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
|
||||||
|
|
||||||
let pkgs' = pkgs; in
|
|
||||||
let
|
|
||||||
pkgs = if !isCross then pkgs' else pkgs'.pkgsCross.aarch64-multiplatform;
|
|
||||||
inherit (pkgs) lib;
|
|
||||||
isCross = builtins.currentSystem != "aarch64-linux";
|
|
||||||
|
|
||||||
fromPkgs = path: pkgs.path + "/${path}";
|
|
||||||
evalConfig = import (fromPkgs "nixos/lib/eval-config.nix");
|
|
||||||
|
|
||||||
buildConfig = { system ? "aarch64-linux", configuration ? {} }:
|
|
||||||
evalConfig {
|
|
||||||
modules = (lib.optional isCross ./cross-hacks.nix)
|
|
||||||
++ [
|
|
||||||
"${./.}/pinebook_pro.nix"
|
|
||||||
configuration
|
|
||||||
(lib.mkIf isCross {
|
|
||||||
nixpkgs.crossSystem = {
|
|
||||||
system = "aarch64-linux";
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
||||||
;
|
|
||||||
base = buildConfig {};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
inherit (base) pkgs;
|
|
||||||
|
|
||||||
isoImage = (buildConfig {
|
|
||||||
configuration = (fromPkgs "nixos/modules/installer/cd-dvd/installation-cd-minimal.nix");
|
|
||||||
}).config.system.build.isoImage;
|
|
||||||
|
|
||||||
sdImage = (buildConfig {
|
|
||||||
configuration = (fromPkgs "nixos/modules/installer/sd-card/sd-image-aarch64-installer.nix");
|
|
||||||
}).config.system.build.sdImage;
|
|
||||||
}
|
|
Loading…
Reference in a new issue