krebs.lib: init

This commit is contained in:
tv 2016-02-14 13:38:47 +01:00
parent 6150679d74
commit 9f16d7ea71
3 changed files with 14 additions and 0 deletions

View File

@ -46,6 +46,8 @@ let stockholm = {
(map (f: f "5pkgs") [ lib.kpath lib.upath ])
]);
krebs.lib = lib;
krebs.current.enable = true;
krebs.current.host = config.krebs.hosts.${current-host-name};
krebs.current.user = config.krebs.users.${current-user-name};

View File

@ -20,6 +20,7 @@ let
./git.nix
./go.nix
./iptables.nix
./lib.nix
./nginx.nix
./nixpkgs.nix
./per-user.nix

11
krebs/3modules/lib.nix Normal file
View File

@ -0,0 +1,11 @@
{ config, pkgs, lib, ... }:
with lib;
let
out = {
options.krebs.lib = api;
};
api = mkOption {
default = {};
type = types.attrs;
};
in out