From 7200dc665118e227855a6fc03cc8a93a0628f3bd Mon Sep 17 00:00:00 2001 From: Van Tuan Vo Date: Mon, 21 Mar 2022 23:56:39 +0100 Subject: [PATCH] nixos/klipper: Rename `flashingEnable` to `flashing.enable` --- nixos/modules/services/misc/klipper.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/misc/klipper.nix b/nixos/modules/services/misc/klipper.nix index 457a0ccfdde8..35ea125753bf 100644 --- a/nixos/modules/services/misc/klipper.nix +++ b/nixos/modules/services/misc/klipper.nix @@ -76,7 +76,7 @@ in type = with types; attrsOf (submodule { options = { - enableFlashing = mkEnableOption '' + flashing.enable = mkEnableOption '' automatic flashing of firmware to microcontroller WARNING: Be careful with this option. Enabling this will automatically flash your microcontroller on e.g. nixos-rebuild. @@ -144,8 +144,8 @@ in with pkgs; let firmwares = mapAttrs - (mcu: { enableFlashing, firmwareConfig }: pkgs.klipper-firmware.override { - flashDevice = if enableFlashing then cfg.settings."${mcu}".serial else null; + (mcu: { flashing, firmwareConfig }: pkgs.klipper-firmware.override { + flashDevice = if flashing.enable then cfg.settings."${mcu}".serial else null; mcu = lib.strings.sanitizeDerivationName mcu; inherit firmwareConfig; })