Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
16 lines
406 B
Nix
16 lines
406 B
Nix
{ lib, options, ... }:
|
|
|
|
# Some modules may be distributed separately and need to adapt to other modules
|
|
# that are distributed and versioned separately.
|
|
{
|
|
|
|
# Always defined, but the value depends on the presence of an option.
|
|
config.set = {
|
|
value = if options ? set.enable then 360 else 7;
|
|
}
|
|
# Only define if possible.
|
|
// lib.optionalAttrs (options ? set.enable) {
|
|
enable = true;
|
|
};
|
|
|
|
}
|