Ingolf Wagner 2023-01-27 11:57:07 +01:00
parent 07067a1dc5
commit 9a2da16136
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
4 changed files with 14 additions and 51 deletions

View File

@ -21,6 +21,8 @@ let
network = "private";
in
{
networking.firewall.trustedInterfaces = [ "tinc.${network}" ];
sops.secrets.tinc_ed25519_key = { };
services.tinc.networks = {

View File

@ -35,7 +35,6 @@
#./hardware-configuration.nix
#./finance.nix
#./grafana.nix
#./graylog.nix
#./kibana.nix
#./mysql.nix

View File

@ -1,38 +0,0 @@
{ config, ... }: {
services.nginx = {
enable = true;
statusPage = true;
virtualHosts = {
"grafana.${config.networking.hostName}.private" = {
serverAliases = [ ];
locations."/" = {
proxyPass = "http://${config.networking.hostName}.private:${
toString config.services.grafana.port
}";
};
};
};
};
#services.grafana = {
# enable = true;
# port = 5656;
# addr =
# config.module.cluster.services.tinc."private".hosts."${config.networking.hostName}".tincIp;
# auth.anonymous = {
# enable = true;
# org_role = "Editor";
# org_name = "AWESOME";
# };
# provision = {
# enable = true;
# datasources = [{
# type = "prometheus";
# isDefault = true;
# name = "Prometheus Workhorse";
# url = "http://workhorse.private:9090";
# }];
# };
#};
}

View File

@ -5,18 +5,18 @@
locations."/" = {
root = pkgs.landingpage.override {
jsonConfig = [
#{ title = "System Links"; }
#{
# text = "Syncthings";
# items = map
# ({ name, host ? "${name}.private", ... }: {
# label = name;
# href = "http://${host}:8384/";
# image = "https://media.giphy.com/media/JoyU4vuzwj6ZA7Ging/giphy.gif";
# })
# (map (name: { inherit name; }) (lib.attrNames
# config.module.cluster.services.tinc."private".hosts));
#}
{ title = "System Links"; }
{
text = "Syncthings";
items = map
({ name, host ? "${name}.private", ... }: {
label = name;
href = "http://${host}:8384/";
image = "https://media.giphy.com/media/JoyU4vuzwj6ZA7Ging/giphy.gif";
})
(lib.flatten (lib.mapAttrsToList (name: { ... }: { inherit name; })
config.services.tinc.networks."private".hostSettings));
}
{
text = "netdata";
items = map