Cleanup lib use, move to std where possible, use upstream nvim module

This commit is contained in:
Kat Inskip 2023-07-30 10:02:03 -07:00
parent aa5c67c13a
commit 11dd6aabd5
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
19 changed files with 53 additions and 515 deletions

View file

@ -1,15 +1,13 @@
{
config,
lib,
std,
...
}: let
# TODO: solve lib usage
inherit (lib.lists) concatLists elem;
inherit (lib.attrsets) mapAttrsToList;
inherit (std) list set;
commonUser = {
openssh.authorizedKeys.keys = concatLists (mapAttrsToList
openssh.authorizedKeys.keys = list.concat (set.mapToValues
(_: user:
if elem "wheel" user.extraGroups
if list.elem "wheel" user.extraGroups
then user.openssh.authorizedKeys.keys
else [])
config.users.users);