2015-10-25 13:15:21 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
2016-10-20 18:54:38 +00:00
|
|
|
with import <stockholm/lib>;
|
2015-10-25 13:15:21 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.krebs.current;
|
|
|
|
|
|
|
|
out = {
|
|
|
|
options.krebs.current = api;
|
2016-02-14 15:43:44 +00:00
|
|
|
config = lib.mkIf cfg.enable imp;
|
2015-10-25 13:15:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
api = {
|
|
|
|
enable = mkEnableOption "krebs.current";
|
|
|
|
host = mkOption {
|
|
|
|
type = types.host;
|
|
|
|
};
|
|
|
|
user = mkOption {
|
|
|
|
type = types.user;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
imp = {
|
|
|
|
};
|
|
|
|
|
|
|
|
in out
|