3 tv retiolum: RIP
This commit is contained in:
parent
ee52522cc1
commit
e082da2c23
1systems/tv
2configs/tv
3modules/tv
|
@ -86,8 +86,8 @@ in
|
|||
};
|
||||
}
|
||||
{
|
||||
imports = [ ../../3modules/tv/retiolum.nix ];
|
||||
tv.retiolum = {
|
||||
imports = [ ../../3modules/krebs/retiolum.nix ];
|
||||
krebs.retiolum = {
|
||||
enable = true;
|
||||
hosts = ../../Zhosts;
|
||||
connectTo = [
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -145,8 +145,8 @@ in
|
|||
};
|
||||
}
|
||||
{
|
||||
imports = [ ../../3modules/tv/retiolum.nix ];
|
||||
tv.retiolum = {
|
||||
imports = [ ../../3modules/krebs/retiolum.nix ];
|
||||
krebs.retiolum = {
|
||||
enable = true;
|
||||
hosts = ../../Zhosts;
|
||||
connectTo = [
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue