feat(nix): add keys enum to global cfg

This commit is contained in:
2025-07-07 03:22:16 +02:00
parent 4611ad87a8
commit d85ebc0e78
4 changed files with 42 additions and 22 deletions

View File

@@ -5,7 +5,7 @@
...
}:
let
cfg-file =
get-cfg =
if config.cfg != null then
import ./get-cfg-file.nix {
inherit lib;
@@ -13,6 +13,8 @@ let
}
else
null;
cfg-file = get-cfg.file;
maker = get-cfg.maker;
in
pkgs.stdenv.mkDerivation rec {
pname = "lidm";
@@ -41,4 +43,8 @@ pkgs.stdenv.mkDerivation rec {
fixupPhase = ''
rm -rf $out/etc
'';
passthru = {
keysEnum = maker.keys-enum;
};
}