27 lines
350 B
Nix
27 lines
350 B
Nix
|
{ config, pkgs, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.krebs.current;
|
||
|
|
||
|
out = {
|
||
|
options.krebs.current = api;
|
||
|
config = mkIf cfg.enable imp;
|
||
|
};
|
||
|
|
||
|
api = {
|
||
|
enable = mkEnableOption "krebs.current";
|
||
|
host = mkOption {
|
||
|
type = types.host;
|
||
|
};
|
||
|
user = mkOption {
|
||
|
type = types.user;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
imp = {
|
||
|
};
|
||
|
|
||
|
in out
|