diff options
author | Milan Pässler <milan@petabyte.dev> | 2020-10-11 16:11:57 +0200 |
---|---|---|
committer | Milan Pässler <milan@petabyte.dev> | 2020-10-11 20:05:25 +0200 |
commit | 8c5f8519ba80ed7295ee4fe5c8e5a446b54da6a3 (patch) | |
tree | 844a55d3743869a5af7f9ab654d4c755c89e9bf8 /flake.nix | |
parent | cff03704dd7fe2f09b17e56598cf2452077f711a (diff) |
add tint, nvramcui, coreinfo
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 57 |
1 files changed, 32 insertions, 25 deletions
diff --git a/flake.nix b/flake.nix index 2c7599cee0c7..b235fa9ef5c1 100644 --- a/flake.nix +++ b/flake.nix @@ -7,33 +7,40 @@ }; description = "A collections of derivations for coreboot and payloads"; - outputs = { self, nixpkgs }: { - packages.x86_64-linux = let - nixpkgsOptions = { - system = "x86_64-linux"; - overlays = [ - (import ./pkgs/overlay.nix) - ]; - }; - pkgs = import nixpkgs nixpkgsOptions; - inherit (pkgs) lib; + outputs = { self, nixpkgs }: let + nixpkgsOptions = { + system = "x86_64-linux"; + overlays = [ + (import ./pkgs/overlay.nix) + ]; + }; + pkgs = import nixpkgs nixpkgsOptions; + inherit (pkgs) lib; - makeDevice = configFile: - with lib.evalModules { - modules = [ - ({ ... }: { - nixpkgs = nixpkgsOptions; - }) - ("${nixpkgs}/nixos/modules/misc/assertions.nix") - ("${nixpkgs}/nixos/modules/misc/nixpkgs.nix") - ./modules - configFile - ]; - }; - config.corenix.rom; - in { - inherit (pkgs) coreboot-payload-grub2 coreboot-payload-tianocore coreboot; + makeDevice = configFile: (lib.evalModules { + modules = [ + ({ ... }: { + nixpkgs = nixpkgsOptions; + }) + ("${nixpkgs}/nixos/modules/misc/assertions.nix") + ("${nixpkgs}/nixos/modules/misc/nixpkgs.nix") + ./modules + configFile + ]; + }).config.corenix.rom; + in { + lib = { inherit makeDevice; + }; + + packages.x86_64-linux = { + inherit (pkgs) + coreboot + coreboot-payload-grub2 + coreboot-payload-tianocore + coreboot-payload-tint + coreboot-payload-nvramcui + coreboot-payload-coreinfo; milan-x1c = makeDevice ./configs/milan-x1c.nix; milan-x230t = makeDevice ./configs/milan-x230t.nix; |