krebs.tinc: drop api and imp boilerplate
This commit is contained in:
parent
018018e16b
commit
8029e80632
|
@ -1,12 +1,6 @@
|
||||||
with import <stockholm/lib>;
|
with import <stockholm/lib>;
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }: {
|
||||||
let
|
options.krebs.tinc = mkOption {
|
||||||
out = {
|
|
||||||
options.krebs.tinc = api;
|
|
||||||
config = imp;
|
|
||||||
};
|
|
||||||
|
|
||||||
api = mkOption {
|
|
||||||
default = {};
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
define a tinc network
|
define a tinc network
|
||||||
|
@ -214,7 +208,7 @@ let
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
imp = {
|
config = {
|
||||||
# TODO `environment.systemPackages = [ cfg.tincPackage cfg.iproutePackage ]` for each network,
|
# TODO `environment.systemPackages = [ cfg.tincPackage cfg.iproutePackage ]` for each network,
|
||||||
# avoid conflicts in environment if the packages differ
|
# avoid conflicts in environment if the packages differ
|
||||||
|
|
||||||
|
@ -272,4 +266,4 @@ let
|
||||||
};
|
};
|
||||||
}) config.krebs.tinc;
|
}) config.krebs.tinc;
|
||||||
};
|
};
|
||||||
in out
|
}
|
||||||
|
|
Loading…
Reference in a new issue