repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #298967 from vbgl/ocaml-5.2.0
[NixPkgs.git]
/
lib
/
tests
/
modules
/
freeform-str-dep-unstr.nix
blob
a2dfbc80cfa6f3d42cfd23ff9b9acca862e8c9cf
1
{ lib, config, ... }: {
2
options.foo = lib.mkOption {
3
type = lib.types.nullOr lib.types.str;
4
default = null;
5
};
6
7
config.foo = lib.mkIf (config ? value) config.value;
8
}