blob: e97e53479855be1aa73f73333f17ea4bd86af77a (
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 import <stockholm/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
  |