mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
9 lines
189 B
Nix
9 lines
189 B
Nix
|
{ lib, config, ... }: {
|
||
|
options.value = lib.mkOption {
|
||
|
type = lib.types.nullOr lib.types.str;
|
||
|
default = null;
|
||
|
};
|
||
|
|
||
|
config.foo = lib.mkIf (config.value != null) config.value;
|
||
|
}
|