From e90262608ec0cc8eb2751e4dfc823f1235c1a05c Mon Sep 17 00:00:00 2001 From: nikstur Date: Sun, 25 Dec 2022 15:46:41 +0100 Subject: [PATCH] flake.nix: apply suggestions from statix --- flake.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index aec8aaa..94f1b04 100644 --- a/flake.nix +++ b/flake.nix @@ -30,7 +30,7 @@ ]; }; - lib = pkgs.lib; + inherit (pkgs) lib; rust-nightly = pkgs.rust-bin.fromRustupToolchainFile ./rust/lanzaboote/rust-toolchain.toml; craneLib = crane.lib.x86_64-linux.overrideToolchain rust-nightly; @@ -204,7 +204,7 @@ lanzaboote-boot-under-sd-stage1 = mkSecureBootTest { name = "signed-files-boot-under-secureboot-systemd-stage-1"; - machine = { ... }: { + machine = _: { boot.initrd.systemd.enable = true; }; testScript = '' @@ -222,9 +222,9 @@ # which should exist IF lanzatool do the right thing. lanzaboote-with-initrd-secrets = mkSecureBootTest { name = "signed-files-boot-with-secrets-under-secureboot"; - machine = { ... }: { + machine = _: { boot.initrd.secrets = { - "/etc/iamasecret" = (pkgs.writeText "iamsecret" "this is a very secure secret"); + "/etc/iamasecret" = pkgs.writeText "iamsecret" "this is a very secure secret"; }; boot.initrd.preDeviceCommands = ''