mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
16 lines
395 B
Nix
16 lines
395 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 = {
|
|
value = if options ? enable then 360 else 7;
|
|
}
|
|
# Only define if possible.
|
|
// lib.optionalAttrs (options ? enable) {
|
|
enable = true;
|
|
};
|
|
|
|
}
|