feat: made the custom dns a tad more general
This commit is contained in:
parent
ed43da872c
commit
fce75fde73
2 changed files with 39 additions and 32 deletions
|
@ -241,7 +241,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
records =
|
records =
|
||||||
config.skynet.records
|
config.skynet.records."skynet.ie"
|
||||||
++ builtins.concatLists (
|
++ builtins.concatLists (
|
||||||
lib.attrsets.mapAttrsToList (
|
lib.attrsets.mapAttrsToList (
|
||||||
key: value: let
|
key: value: let
|
||||||
|
|
|
@ -8,16 +8,17 @@
|
||||||
options.skynet = {
|
options.skynet = {
|
||||||
records = lib.mkOption {
|
records = lib.mkOption {
|
||||||
description = "Records, sorted based on therir type";
|
description = "Records, sorted based on therir type";
|
||||||
type = lib.types.listOf (lib.types.submodule (import ../_types/dns_object.nix {
|
type = lib.types.attrsOf (lib.types.listOf (lib.types.submodule (import ../_types/dns_object.nix {
|
||||||
inherit lib;
|
inherit lib;
|
||||||
}));
|
})));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
skynet.records = [
|
skynet.records = {
|
||||||
|
"skynet.ie" = [
|
||||||
{
|
{
|
||||||
record = "optimus-reborn";
|
record = "optimus-reborn2";
|
||||||
r_type = "A";
|
r_type = "A";
|
||||||
value = "193.1.99.90";
|
value = "193.1.99.90";
|
||||||
server = true;
|
server = true;
|
||||||
|
@ -44,5 +45,11 @@
|
||||||
value = "0 10 25518 minecraft.compsoc.games.skynet.ie.";
|
value = "0 10 25518 minecraft.compsoc.games.skynet.ie.";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
# some space to avoid conflicts
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue