added monitoring and updated nameservers

This commit is contained in:
Tyler Mayoff 2025-12-06 19:58:16 -05:00 committed by Tyle Mayoff
parent ac85fbfa4e
commit 94d19278c3
3 changed files with 36 additions and 3 deletions

View file

@ -2,7 +2,9 @@
pkgs,
outputs,
...
}: {
}: let
secrets = builtins.fromTOML (builtins.readFile ./secrets.toml);
in {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -31,7 +33,28 @@
};
networking.hostName = "saffron"; # Define your hostname.
networking.firewall.allowedTCPPorts = [ 443 ];
networking.firewall.allowedTCPPorts = [443];
networking.nameservers = ["8.8.8.8" "8.8.4.4" "1.1.1.1"];
virtualisation.oci-containers = {
backend = "docker";
containers = {
baszel = {
image = "henrygd/beszel-agent:latest";
autoStart = true;
environment = {
PORT = "45876";
KEY = secrets.baszel_key;
HUB_URL = "http://10.0.0.2:8090";
TOKEN = secrets.baszel_token;
};
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
];
};
};
};
# Caddy reverse proxy with DNS challenge
services.caddy = {