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