flake: reformat to fit nixpkgs-fmt style

This commit is contained in:
Julian Stecklina 2023-01-08 14:42:30 +01:00
parent 74182c199a
commit 4f14ca0197
1 changed files with 115 additions and 109 deletions

View File

@ -54,7 +54,8 @@
]; ];
boot.lanzaboote.package = perSystem.config.packages.lanzatool; boot.lanzaboote.package = perSystem.config.packages.lanzatool;
}); }
);
systems = [ systems = [
"x86_64-linux" "x86_64-linux"
@ -63,7 +64,8 @@
# "aarch64-linux" # "aarch64-linux"
]; ];
perSystem = { config, system, pkgs, ... }: let perSystem = { config, system, pkgs, ... }:
let
pkgs = import nixpkgs { pkgs = import nixpkgs {
system = system; system = system;
overlays = [ overlays = [
@ -125,11 +127,13 @@
}; };
lanzatool-unwrapped = lanzatoolCrane.package; lanzatool-unwrapped = lanzatoolCrane.package;
in { in
{
packages = { packages = {
inherit lanzaboote; inherit lanzaboote;
lanzatool = pkgs.runCommand "lanzatool" { lanzatool = pkgs.runCommand "lanzatool"
{
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ pkgs.makeWrapper ];
} '' } ''
mkdir -p $out/bin mkdir -p $out/bin
@ -168,11 +172,13 @@
${config.pre-commit.installationScript} ${config.pre-commit.installationScript}
''; '';
packages = let packages =
let
uefi-run = pkgs.callPackage ./nix/packages/uefi-run.nix { uefi-run = pkgs.callPackage ./nix/packages/uefi-run.nix {
inherit craneLib; inherit craneLib;
}; };
in [ in
[
uefi-run uefi-run
pkgs.openssl pkgs.openssl
(pkgs.sbctl.override { (pkgs.sbctl.override {