nixos-configs/lib/attrs/default.nix
matt1432 82064fec5a
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: cleanup fixmes
2024-12-29 05:40:30 -05:00

9 lines
239 B
Nix

{...}: let
inherit (builtins) hasAttr isAttrs tryEval;
inputsLib = import ../../inputs/lib.nix;
in {
inherit (inputsLib) recursiveUpdateList;
throws = x: !(tryEval x).success;
hasVersion = x: isAttrs x && hasAttr "version" x;
}