From 8029e80632da0dcb886445bd1e9ba2d55821cc30 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 23 Dec 2021 03:16:44 +0100 Subject: krebs.tinc: drop api and imp boilerplate --- krebs/3modules/tinc.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'krebs') 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 ; -{ 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 +} -- cgit v1.2.3