krebs.lib: init
This commit is contained in:
parent
6150679d74
commit
9f16d7ea71
|
@ -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};
|
||||
|
|
|
@ -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
11
krebs/3modules/lib.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
out = {
|
||||
options.krebs.lib = api;
|
||||
};
|
||||
api = mkOption {
|
||||
default = {};
|
||||
type = types.attrs;
|
||||
};
|
||||
in out
|
Loading…
Reference in a new issue