From 9271773a7bfd0871a1673c32fd372a0769cb4942 Mon Sep 17 00:00:00 2001 From: Van Tuan Vo Date: Tue, 22 Mar 2022 00:01:16 +0100 Subject: [PATCH] nixos/klipper: Rename `firmwareConfig` to `configFile` --- nixos/modules/services/misc/klipper.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/misc/klipper.nix b/nixos/modules/services/misc/klipper.nix index 35ea125753bf..cd9cb7de8725 100644 --- a/nixos/modules/services/misc/klipper.nix +++ b/nixos/modules/services/misc/klipper.nix @@ -82,7 +82,7 @@ in WARNING: Be careful with this option. Enabling this will automatically flash your microcontroller on e.g. nixos-rebuild. This can potentially brick your microcontroller. Alternatively, use `klipper-flash-$mcu` to flash manually. ''; - firmwareConfig = mkOption { + configFile = mkOption { type = path; description = "Path to firmware config which is generated using `klipper-genconf`"; }; @@ -144,10 +144,10 @@ in with pkgs; let firmwares = mapAttrs - (mcu: { flashing, firmwareConfig }: pkgs.klipper-firmware.override { + (mcu: { flashing, configFile }: pkgs.klipper-firmware.override { flashDevice = if flashing.enable then cfg.settings."${mcu}".serial else null; mcu = lib.strings.sanitizeDerivationName mcu; - inherit firmwareConfig; + firmwareConfig = configFile; }) cfg.firmwares; firmwareFlasher = mapAttrsToList @@ -155,7 +155,7 @@ in mcu = lib.strings.sanitizeDerivationName mcu; klipper-firmware = firmware; flashDevice = cfg.settings."${mcu}".serial; - firmwareConfig = cfg.firmwares."${mcu}".firmwareConfig; + firmwareConfig = cfg.firmwares."${mcu}".configFile; }) firmwares; in