29 lines
763 B
Nix
29 lines
763 B
Nix
{ pkgs, lib, nodes, ... }: {
|
|
imports = [
|
|
# applications for this particular server
|
|
../applications/firewall.nix
|
|
];
|
|
|
|
deployment = {
|
|
targetHost = "test01.home.brendan.ie";
|
|
targetPort = 22;
|
|
targetUser = "root";
|
|
};
|
|
|
|
# this server is teh firewall
|
|
skynet_firewall = {
|
|
enable = true;
|
|
|
|
# gonna have to get all the
|
|
forward_parsed =
|
|
# merge together with a newline char
|
|
lib.strings.concatMapStrings (x: x + "\n") (
|
|
# merge the lists together
|
|
builtins.concatLists (
|
|
# using this function "(key: value: value.config.skynet_firewall.forward)" turn the values ointo a list
|
|
lib.attrsets.mapAttrsToList (key: value: value.config.skynet_firewall.forward) nodes
|
|
)
|
|
);
|
|
};
|
|
|
|
}
|