getAttrDef: RIP
This commit is contained in:
parent
dda2887e2c
commit
39ebd5001e
@ -41,7 +41,6 @@ let out = rec {
|
||||
mapAttrs (name: _: path + "/${name}")
|
||||
(filterAttrs (_: eq "directory") (readDir path));
|
||||
|
||||
getAttrDef = name: set: set.${name} or set.default or null;
|
||||
mapAttrValues = f: mapAttrs (_: f);
|
||||
setAttr = name: value: set: set // { ${name} = value; };
|
||||
|
||||
|
@ -199,8 +199,9 @@ types // rec {
|
||||
description = ''
|
||||
Set of user's PGP public keys.
|
||||
|
||||
Modules supporting PGP may use well-known key names to define option
|
||||
defaults, e.g. using `getAttrDef well-known-name pubkeys`.
|
||||
Modules supporting PGP may use well-known key names to define
|
||||
default values for options, in which case the well-known name
|
||||
should be documented in the respective option's description.
|
||||
'';
|
||||
};
|
||||
pubkey = mkOption {
|
||||
|
Loading…
Reference in New Issue
Block a user