3 tv retiolum: RIP

This commit is contained in:
tv 2015-07-24 12:34:25 +02:00
parent ee52522cc1
commit e082da2c23
7 changed files with 12 additions and 41 deletions

View file

@ -86,8 +86,8 @@ in
};
}
{
imports = [ ../../3modules/tv/retiolum.nix ];
tv.retiolum = {
imports = [ ../../3modules/krebs/retiolum.nix ];
krebs.retiolum = {
enable = true;
hosts = ../../Zhosts;
connectTo = [

View file

@ -29,8 +29,8 @@ with lib;
};
}
{
imports = [ ../../3modules/tv/retiolum.nix ];
tv.retiolum = {
imports = [ ../../3modules/krebs/retiolum.nix ];
krebs.retiolum = {
enable = true;
hosts = ../../Zhosts;
connectTo = [

View file

@ -37,8 +37,8 @@ with lib;
};
}
{
imports = [ ../../3modules/tv/retiolum.nix ];
tv.retiolum = {
imports = [ ../../3modules/krebs/retiolum.nix ];
krebs.retiolum = {
enable = true;
hosts = ../../Zhosts;
connectTo = [

View file

@ -29,8 +29,8 @@ with lib;
};
}
{
imports = [ ../../3modules/tv/retiolum.nix ];
tv.retiolum = {
imports = [ ../../3modules/krebs/retiolum.nix ];
krebs.retiolum = {
enable = true;
hosts = ../../Zhosts;
connectTo = [

View file

@ -145,8 +145,8 @@ in
};
}
{
imports = [ ../../3modules/tv/retiolum.nix ];
tv.retiolum = {
imports = [ ../../3modules/krebs/retiolum.nix ];
krebs.retiolum = {
enable = true;
hosts = ../../Zhosts;
connectTo = [

View file

@ -4,9 +4,9 @@
services.exim =
# This configuration makes only sense for retiolum-enabled hosts.
# TODO modular configuration
assert config.tv.retiolum.enable;
assert config.krebs.retiolum.enable;
let
# TODO get the hostname from config.tv.retiolum.
# TODO get the hostname from config.krebs.retiolum.
retiolumHostname = "${config.networking.hostName}.retiolum";
in
{ enable = true;

View file

@ -1,29 +0,0 @@
{ config, lib, ... }:
with lib;
let
cfg = config.tv.retiolum;
out = {
imports = [ ../../3modules/krebs/retiolum.nix ];
options.tv.retiolum = api;
config = mkIf cfg.enable imp;
};
api = {
enable = mkEnableOption "tv.retiolum";
connectTo = mkOption {
type = with types; listOf str;
};
hosts = mkOption {
type = types.path;
};
};
imp = {
krebs.retiolum = cfg;
};
in out