style: removed with lib;

This commit is contained in:
catvayor 2024-12-15 17:22:49 +01:00
parent d27db1e3ca
commit f315e3c7c3
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
4 changed files with 71 additions and 26 deletions

View file

@ -1,6 +1,15 @@
{ lib }:
with lib;
let
inherit (lib)
filterAttrs
trim
splitString
filter
hasPrefix
readFile
mapAttrs'
removeSuffix
;
key-files = filterAttrs (name: _: name != "default.nix") (builtins.readDir ./.);
readKeys =
file: