at 25.11-pre 410 B view raw
1{ lib, options, ... }: 2 3# Some modules may be distributed separately and need to adapt to other modules 4# that are distributed and versioned separately. 5{ 6 7 # Always defined, but the value depends on the presence of an option. 8 config = 9 { 10 value = if options ? enable then 360 else 7; 11 } 12 # Only define if possible. 13 // lib.optionalAttrs (options ? enable) { 14 enable = true; 15 }; 16 17}