1
0

Update from updated-inputs-2024-03-25-02-03

This commit is contained in:
clerie 2024-03-25 03:04:00 +01:00
commit 78350d0dd8
7 changed files with 97 additions and 27 deletions

View File

@ -90,11 +90,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1687119570, "lastModified": 1711287766,
"narHash": "sha256-tZ6hctUdlZzsdg4WA4Fv7C5bNGnotYp0QT+s3rvlIKw=", "narHash": "sha256-2roymGPfsQZC1Lg/i3iffBQ8c86DLEXmuoKQIlbOg5o=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "cc43776e6dd7eb94962e9f23b8e8282d34597a75", "rev": "f707f212378f9d8de103ac96abcd9d377a2605a8",
"revCount": 39, "revCount": 56,
"type": "git", "type": "git",
"url": "https://git.clerie.de/clerie/fieldpoc.git" "url": "https://git.clerie.de/clerie/fieldpoc.git"
}, },

View File

@ -2,11 +2,17 @@
{ {
services.grafana = { services.grafana = {
enable = true; enable = true;
domain = "grafana.monitoring.clerie.de"; settings = {
rootUrl = "https://grafana.monitoring.clerie.de"; server = {
port = 3001; domain = "grafana.monitoring.clerie.de";
addr = "::1"; root_url = "https://grafana.monitoring.clerie.de";
auth.anonymous.enable = true; http_port = 3001;
http_addr = "::1";
};
"auth.anonymous" = {
enabled = true;
};
};
provision = { provision = {
enable = true; enable = true;

View File

@ -294,6 +294,66 @@ in {
relabelAddressToInstance relabelAddressToInstance
]; ];
} }
{
job_name = "blackbox_local_icmp6_1s";
scrape_interval = "1s";
metrics_path = "/probe";
params = {
module = [ "icmp6" ];
};
static_configs = [
{
targets = [
"carbon.net.clerie.de"
];
}
];
relabel_configs = [
{
source_labels = [ "__address__" ];
target_label = "__param_target";
}
{
source_labels = [ "__address__" ];
target_label = "target";
}
{
target_label = "__address__";
replacement = "monitoring-3.mon.clerie.de:9115";
}
relabelAddressToInstance
];
}
{
job_name = "blackbox_local_icmp4_1s";
scrape_interval = "1s";
metrics_path = "/probe";
params = {
module = [ "icmp4" ];
};
static_configs = [
{
targets = [
"carbon.net.clerie.de"
];
}
];
relabel_configs = [
{
source_labels = [ "__address__" ];
target_label = "__param_target";
}
{
source_labels = [ "__address__" ];
target_label = "target";
}
{
target_label = "__address__";
replacement = "monitoring-3.mon.clerie.de:9115";
}
relabelAddressToInstance
];
}
{ {
job_name = "zimmer-temp"; job_name = "zimmer-temp";
scrape_interval = "20s"; scrape_interval = "20s";

View File

@ -3,18 +3,20 @@
{ {
services.syncthing = { services.syncthing = {
enable = true; enable = true;
devices = { settings = {
ceasium = { id = "3JVJ2KS-C44JKLL-LFIMCVJ-VUQK2VB-WKJNOGB-4AIJYJM-MINXEKG-T5FHQQE"; }; devices = {
ev0 = { id = "XLZNAIG-Q5BJYXZ-IJWS3RD-EOETGFI-265U5MH-U4VBEXX-KC6MWPH-B22ROQT"; }; ceasium = { id = "3JVJ2KS-C44JKLL-LFIMCVJ-VUQK2VB-WKJNOGB-4AIJYJM-MINXEKG-T5FHQQE"; };
}; ev0 = { id = "XLZNAIG-Q5BJYXZ-IJWS3RD-EOETGFI-265U5MH-U4VBEXX-KC6MWPH-B22ROQT"; };
folders = { };
mixcloud = { folders = {
path = "/data/mixcloud"; mixcloud = {
type = "sendonly"; path = "/data/mixcloud";
devices = [ type = "sendonly";
"ceasium" devices = [
"ev0" "ceasium"
]; "ev0"
];
};
}; };
}; };
}; };

View File

@ -22,6 +22,7 @@
systemd.services."chaosevents" = { systemd.services."chaosevents" = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
requires = [ "network.target" ];
after = [ "network.target" ]; after = [ "network.target" ];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
@ -41,6 +42,7 @@
OnCalendar = "hourly"; OnCalendar = "hourly";
RandomizedDelaySec = "1h"; RandomizedDelaySec = "1h";
}; };
requires = [ "network-online.target" ];
after = [ "network-online.target" ]; after = [ "network-online.target" ];
}; };
} }

View File

@ -12,10 +12,6 @@
user = "gitea"; user = "gitea";
socket = "/run/postgresql"; socket = "/run/postgresql";
}; };
rootUrl = "https://git.clerie.de/";
domain = "git.clerie.de";
httpAddress = "127.0.0.1";
httpPort = 3000;
lfs.enable = true; lfs.enable = true;
settings = { settings = {
log = { log = {
@ -30,6 +26,10 @@
DEFAULT_PRIVATE = true; DEFAULT_PRIVATE = true;
}; };
server = { server = {
ROOT_URL = "https://git.clerie.de/";
DOMAIN = "git.clerie.de";
HTTP_ADDRESS = "127.0.0.1";
HTTP_PORT = 3000;
OFFLINE_MODE = true; OFFLINE_MODE = true;
LANDING_PAGE = "explore"; LANDING_PAGE = "explore";
}; };
@ -66,7 +66,7 @@
ensureUsers = [ ensureUsers = [
{ {
name = "gitea"; name = "gitea";
ensurePermissions."DATABASE gitea" = "ALL PRIVILEGES"; ensureDBOwnership = true;
} }
]; ];
}; };

View File

@ -21,7 +21,7 @@ in
description = "Automatically check and install upgrades"; description = "Automatically check and install upgrades";
}; };
startAt = mkOption { startAt = mkOption {
type = with types; nullOr string; type = with types; nullOr str;
default = null; default = null;
description = "Systemd time string for starting the unit"; description = "Systemd time string for starting the unit";
}; };