stockholm/krebs/3modules/lib.nix

16 lines
267 B
Nix
Raw Normal View History

2016-02-14 12:38:47 +00:00
{ config, pkgs, lib, ... }:
with lib;
let
out = {
options.krebs.lib = api;
2016-02-15 15:27:11 +00:00
config = imp;
2016-02-14 12:38:47 +00:00
};
api = mkOption {
default = {};
type = types.attrs;
};
2016-02-15 15:27:11 +00:00
imp = {
2016-02-21 06:39:24 +00:00
krebs.lib = lib // import ../4lib { inherit config lib; } // builtins;
2016-02-15 15:27:11 +00:00
};
2016-02-14 12:38:47 +00:00
in out