summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/current.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-10-25 18:17:14 +0100
committermakefu <github@syntax-fehler.de>2015-10-25 18:17:14 +0100
commitbb16a38df6ad33c7339d4875e948853927015045 (patch)
tree3cd41d5d52c8facf55e48e05c65b6bad887ae4c3 /krebs/3modules/current.nix
parentcca25c7b66c44e0ec826d466bd48f2463df03fe9 (diff)
parent4b22988392f940c705e7f3fddc39481635777895 (diff)
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/3modules/current.nix')
-rw-r--r--krebs/3modules/current.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/krebs/3modules/current.nix b/krebs/3modules/current.nix
new file mode 100644
index 000000000..41941e289
--- /dev/null
+++ b/krebs/3modules/current.nix
@@ -0,0 +1,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