diff options
author | tv <tv@shackspace.de> | 2015-07-10 20:46:12 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-07-10 20:46:12 +0200 |
commit | 2efbe1415ce7ba64dc67d66b7bc4eb274b91df71 (patch) | |
tree | 61a330bea5152fdb35113657219c0f72144ec19f /modules/tv/identity | |
parent | b49fb90be3959d77f8fe1d7ccc84751b04ff48cf (diff) |
tv.identity: init
Diffstat (limited to 'modules/tv/identity')
-rw-r--r-- | modules/tv/identity/default.nix | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/modules/tv/identity/default.nix b/modules/tv/identity/default.nix new file mode 100644 index 000000000..7cf90de01 --- /dev/null +++ b/modules/tv/identity/default.nix @@ -0,0 +1,71 @@ +{ lib, ... }: + +with lib; + +let + + cfg = config.tv.identity; + + out = { + options.tv.identity = api; + #config = mkIf cfg.enable imp; + }; + + api = { + enable = mkOption { + type = types.bool; + default = false; + }; + self = mkOption { + type = types.unspecified; + }; + hosts = mkOption { + type = with types; attrsOf unspecified; + default = { + cd = { + #dc = "cac"; + dc = "tv"; + fqdn = "cd.retiolum"; + addr = "10.243.113.222"; + #addr6 = "42:4522:25f8:36bb:8ccb:0150:231a:2af3"; + #internet-addr = "162.219.5.183"; + cores = 2; + }; + mkdir = { + #dc = "cac"; + dc = "tv"; + fqdn = "mkdir.retiolum"; + addr = "10.243.113.223"; + cores = 1; + }; + nomic = { + #dc = "gg"; + dc = "tv"; + fqdn = "nomic.retiolum"; + addr = "10.243.0.110"; + cores = 2; + }; + rmdir = { + #dc = "cac"; + dc = "tv"; + fqdn = "rmdir.retiolum"; + addr = "10.243.113.224"; + #addr = "42:4522:25f8:36bb:8ccb:0150:231a:2af5"; + cores = 1; + }; + wu = { + #dc = "gg"; + dc = "tv"; + fqdn = "wu.retiolum"; + addr = "10.243.13.37"; + cores = 8; + }; + }; + }; + }; + + #imp = { + #}; + +in +out |