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 ]) (map (f: f "5pkgs") [ lib.kpath lib.upath ])
]); ]);
krebs.lib = lib;
krebs.current.enable = true; krebs.current.enable = true;
krebs.current.host = config.krebs.hosts.${current-host-name}; krebs.current.host = config.krebs.hosts.${current-host-name};
krebs.current.user = config.krebs.users.${current-user-name}; krebs.current.user = config.krebs.users.${current-user-name};

View file

@ -20,6 +20,7 @@ let
./git.nix ./git.nix
./go.nix ./go.nix
./iptables.nix ./iptables.nix
./lib.nix
./nginx.nix ./nginx.nix
./nixpkgs.nix ./nixpkgs.nix
./per-user.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