summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/current.nix
blob: 41941e2892819a440b47e52e7eb416a41f7e7909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ 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