summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-10-25 14:15:21 +0100
committertv <tv@shackspace.de>2015-10-25 14:15:21 +0100
commit8f15daf2ea25304e9cbc8d449fb92078b2fb6f03 (patch)
tree7291d63e67340d31b3be8677fe2f8c56e8f3b653 /krebs/3modules
parentdaa8fe2aa83451e7d4fc120f7fd417409ac2666c (diff)
init krebs.current
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/current.nix26
-rw-r--r--krebs/3modules/default.nix1
2 files changed, 27 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
diff --git a/krebs/3modules/default.nix b/krebs/3modules/default.nix
index dd2f9e762..2b5fc478c 100644
--- a/krebs/3modules/default.nix
+++ b/krebs/3modules/default.nix
@@ -8,6 +8,7 @@ let
imports = [
./bepasty-server.nix
./build.nix
+ ./current.nix
./exim-retiolum.nix
./exim-smarthost.nix
./github-hosts-sync.nix