mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
nixos/zfs: replace with
with let
The fully-qualified name would certainly be a lot here, but `with` can still be unclear even with narrow scope. A short `let` adds clarity without significantly increasing verbosity.
This commit is contained in:
parent
eef4c18ae8
commit
bec753ddfc
|
@ -516,7 +516,7 @@ in
|
|||
};
|
||||
|
||||
settings = lib.mkOption {
|
||||
type = with lib.types; attrsOf (oneOf [ str int bool (listOf str) ]);
|
||||
type = let t = lib.types; in t.attrsOf (t.oneOf [ t.str t.int t.bool (t.listOf t.str) ]);
|
||||
example = lib.literalExpression ''
|
||||
{
|
||||
ZED_DEBUG_LOG = "/tmp/zed.debug.log";
|
||||
|
|
Loading…
Reference in a new issue