summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/current.nix
blob: 5c32203fdbc4ae3698517944a6c6f1c28e8a2774 (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 = lib.mkIf cfg.enable imp;
  };

  api = {
    enable = mkEnableOption "krebs.current";
    host = mkOption {
      type = types.host;
    };
    user = mkOption {
      type = types.user;
    };
  };

  imp = {
  };

in out