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.set =
9 {
10 value = if options ? set.enable then 360 else 7;
11 }
12 # Only define if possible.
13 // lib.optionalAttrs (options ? set.enable) {
14 enable = true;
15 };
16
17}