bootstrap: flakify bootstrap zip ball generation

This commit is contained in:
Tobias Happ 2022-09-24 13:49:51 +02:00
parent b10dd78e18
commit 274bb4babd
8 changed files with 58 additions and 40 deletions

View file

@ -3,14 +3,21 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
# for bootstrap zip ball creation and proot-termux builds, we use a fixed version of nixpkgs to ease maintanence.
# head of nixos-22.05 as of 2022-06-27
# note: when updating nixpkgs-for-bootstrap, update store paths of proot-termux in modules/environment/login/default.nix
nixpkgs-for-bootstrap.url = "github:NixOS/nixpkgs/cd90e773eae83ba7733d2377b6cdf84d45558780";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, home-manager, flake-utils }:
outputs = { self, nixpkgs, nixpkgs-for-bootstrap, home-manager, flake-utils }:
let
overlay = nixpkgs.lib.composeManyExtensions (import ./overlays);
@ -47,7 +54,12 @@
nix-on-droid = app;
};
}
// flake-utils.lib.eachDefaultSystem (system: {
// flake-utils.lib.eachSystem [ "aarch64-linux" "i686-linux" "x86_64-darwin" "x86_64-linux" ] (system: {
formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
packages = import ./pkgs {
inherit system;
nixpkgs = nixpkgs-for-bootstrap;
};
});
}