mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
9 lines
181 B
Nix
9 lines
181 B
Nix
{ lib, config, ... }: {
|
|
options.foo = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.str;
|
|
default = null;
|
|
};
|
|
|
|
config.foo = lib.mkIf (config ? value) config.value;
|
|
}
|