mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
8 lines
181 B
Nix
8 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;
|
|
}
|