add shortcut for use with flake-compat

wip/yesman
Milan Pässler 4 years ago
parent d382e0adc0
commit b00e192187
  1. 2
      README.md
  2. 16
      flake.nix

@ -4,7 +4,7 @@
1. Create a configuration file for your device in `configs/`
2. Add an entry to flake.nix, i.e. `my-device = makeDevice ./configs/my-device.nix;`
3. Build the coreboot rom: `nix build .#my-device`
3. Build the coreboot rom: `nix build -A pkgs.my-device`
*Features*

@ -28,12 +28,8 @@
configFile
];
}).config.corenix.rom;
in {
lib = {
inherit makeDevice;
};
packages.x86_64-linux = {
exportedPkgs = {
inherit (pkgs)
coreboot
coreboot-payload-grub2
@ -45,5 +41,15 @@
milan-x1c = makeDevice ./configs/milan-x1c.nix;
milan-x230t = makeDevice ./configs/milan-x230t.nix;
};
in {
lib = {
inherit makeDevice;
};
packages.x86_64-linux = exportedPkgs;
# shortcut for use with flake-compat
pkgs = exportedPkgs;
};
}

Loading…
Cancel
Save