From c04cbde738aedc36454105884b7c15f1da0758c9 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Sun, 20 Feb 2022 20:20:29 -0500 Subject: [PATCH] Drop default.nix --- default.nix | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 default.nix diff --git a/default.nix b/default.nix deleted file mode 100644 index 8a14414..0000000 --- a/default.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ pkgs ? import {} }: - -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; -}