mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(ci): ldap shell aliases
This commit is contained in:
parent
926290306a
commit
81b20878f1
3 changed files with 74 additions and 7 deletions
6
lib.nix
6
lib.nix
|
|
@ -7,7 +7,7 @@
|
|||
inherit (nixlib.strings) splitString toLower;
|
||||
inherit (nixlib.lists) imap0 elemAt;
|
||||
inherit (nixlib.attrsets) listToAttrs nameValuePair;
|
||||
inherit (nixlib.strings) substring fixedWidthString replaceStrings;
|
||||
inherit (nixlib.strings) substring fixedWidthString replaceStrings concatMapStringsSep;
|
||||
inherit (nixlib.trivial) flip toHexString bitOr;
|
||||
|
||||
toHexStringLower = v: toLower (toHexString v);
|
||||
|
|
@ -33,6 +33,8 @@
|
|||
userIs = group: user: builtins.elem group (user.extraGroups ++ [user.group]);
|
||||
|
||||
mkWinPath = replaceStrings ["/"] ["\\"];
|
||||
mkBaseDn = domain: concatMapStringsSep "," (part: "dc=${part}") (splitString "." domain);
|
||||
|
||||
in {
|
||||
inherit tree nixlib inputs systems;
|
||||
meta = tree.impure;
|
||||
|
|
@ -40,7 +42,7 @@ in {
|
|||
Std = inputs.std-fl.lib;
|
||||
lib = {
|
||||
domain = "gensokyo.zone";
|
||||
inherit mkWinPath userIs eui64 toHexStringLower hexCharToInt;
|
||||
inherit mkWinPath mkBaseDn userIs eui64 toHexStringLower hexCharToInt;
|
||||
inherit (inputs.arcexprs.lib) unmerged json;
|
||||
};
|
||||
generate = import ./generate.nix {inherit inputs tree;};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue