mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-19 17:46:46 +02:00
8 lines
189 B
Nix
8 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;
|
|
}
|