nixos/klipper: Rename flashingEnable
to flashing.enable
This commit is contained in:
parent
bc96bf2e06
commit
7200dc6651
1 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ in
|
||||||
type = with types; attrsOf
|
type = with types; attrsOf
|
||||||
(submodule {
|
(submodule {
|
||||||
options = {
|
options = {
|
||||||
enableFlashing = mkEnableOption ''
|
flashing.enable = mkEnableOption ''
|
||||||
automatic flashing of firmware to microcontroller
|
automatic flashing of firmware to microcontroller
|
||||||
|
|
||||||
WARNING: Be careful with this option. Enabling this will automatically flash your microcontroller on e.g. nixos-rebuild.
|
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;
|
with pkgs;
|
||||||
let
|
let
|
||||||
firmwares = mapAttrs
|
firmwares = mapAttrs
|
||||||
(mcu: { enableFlashing, firmwareConfig }: pkgs.klipper-firmware.override {
|
(mcu: { flashing, firmwareConfig }: pkgs.klipper-firmware.override {
|
||||||
flashDevice = if enableFlashing then cfg.settings."${mcu}".serial else null;
|
flashDevice = if flashing.enable then cfg.settings."${mcu}".serial else null;
|
||||||
mcu = lib.strings.sanitizeDerivationName mcu;
|
mcu = lib.strings.sanitizeDerivationName mcu;
|
||||||
inherit firmwareConfig;
|
inherit firmwareConfig;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue