diff options
-rw-r--r-- | krebs/3modules/tinc.nix | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix index 2daef8e15..91aa37fdf 100644 --- a/krebs/3modules/tinc.nix +++ b/krebs/3modules/tinc.nix @@ -1,12 +1,6 @@ with import <stockholm/lib>; -{ config, pkgs, ... }: -let - out = { - options.krebs.tinc = api; - config = imp; - }; - - api = mkOption { +{ config, pkgs, ... }: { + options.krebs.tinc = mkOption { default = {}; description = '' define a tinc network @@ -214,7 +208,7 @@ let })); }; - imp = { + config = { # TODO `environment.systemPackages = [ cfg.tincPackage cfg.iproutePackage ]` for each network, # avoid conflicts in environment if the packages differ @@ -272,4 +266,4 @@ let }; }) config.krebs.tinc; }; -in out +} |