mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
Cleanup lib use, move to std where possible, use upstream nvim module
This commit is contained in:
parent
aa5c67c13a
commit
11dd6aabd5
19 changed files with 53 additions and 515 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue