aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-09-13 09:53:19 +0200
committerKarel Kočí <cynerd@email.cz>2023-09-13 09:53:19 +0200
commitaeb76ef4125f621cad11acf3e5d6b97cfac9d28a (patch)
treebdde9c09422d54611aa31863bf06edbb39581721
parent14f6f4484ee474cc18f5b812c4072713e4803ba7 (diff)
downloadnixos-personal-aeb76ef4125f621cad11acf3e5d6b97cfac9d28a.tar.gz
nixos-personal-aeb76ef4125f621cad11acf3e5d6b97cfac9d28a.tar.bz2
nixos-personal-aeb76ef4125f621cad11acf3e5d6b97cfac9d28a.zip
nixos: redirect logging to cynerd.cz
-rw-r--r--nixos/machine/lipwig.nix1
-rw-r--r--nixos/machine/spt-mox.nix2
-rw-r--r--nixos/modules/home-assistant.nix1
-rw-r--r--nixos/modules/monitoring.nix3
4 files changed, 4 insertions, 3 deletions
diff --git a/nixos/machine/lipwig.nix b/nixos/machine/lipwig.nix
index f235455..042ee27 100644
--- a/nixos/machine/lipwig.nix
+++ b/nixos/machine/lipwig.nix
@@ -60,6 +60,7 @@ with lib; {
useACMEHost = "cynerd.cz";
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.grafana.settings.server.http_port}/";
+ extraConfig = "proxy_set_header Host $host;";
proxyWebsockets = true;
};
};
diff --git a/nixos/machine/spt-mox.nix b/nixos/machine/spt-mox.nix
index accd963..7dc74fa 100644
--- a/nixos/machine/spt-mox.nix
+++ b/nixos/machine/spt-mox.nix
@@ -10,7 +10,7 @@ with lib; {
cynerd = {
home-assistant = true;
wifiAP.spt = {
- enable = true;
+ enable = false;
qca988x = {
interface = "wls1";
channel = 7;
diff --git a/nixos/modules/home-assistant.nix b/nixos/modules/home-assistant.nix
index efe5b84..813b41b 100644
--- a/nixos/modules/home-assistant.nix
+++ b/nixos/modules/home-assistant.nix
@@ -147,6 +147,7 @@ in {
extraPackages = pkgs:
with pkgs; [
securetar
+ pyipp
];
packageOverrides = self: super: {
scapy = super.scapy.override {
diff --git a/nixos/modules/monitoring.nix b/nixos/modules/monitoring.nix
index 7a9e7b7..36cd387 100644
--- a/nixos/modules/monitoring.nix
+++ b/nixos/modules/monitoring.nix
@@ -45,8 +45,7 @@ in {
agent = {};
outputs.influxdb_v2 = [
{
- # TODO change to lipwig!!
- urls = ["http://errol:8086"];
+ urls = ["http://cynerd.cz:8086"];
token = "$INFLUX_TOKEN";
organization = "personal";
bucket = "monitoring";