feat(config): enable Netdata monitoring
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0e79934ac6
commit
a47e29ff70
1 changed files with 24 additions and 2 deletions
|
|
@ -15,6 +15,16 @@
|
||||||
networking.hostName = "nixos";
|
networking.hostName = "nixos";
|
||||||
networking.domain = "";
|
networking.domain = "";
|
||||||
|
|
||||||
|
# === IPv6 ===
|
||||||
|
networking.interfaces.ens6.ipv6.addresses = [{
|
||||||
|
address = "2a01:239:484:9d00::1";
|
||||||
|
prefixLength = 80;
|
||||||
|
}];
|
||||||
|
networking.defaultGateway6 = {
|
||||||
|
address = "fe80::1";
|
||||||
|
interface = "ens6";
|
||||||
|
};
|
||||||
|
|
||||||
# === Firewall ===
|
# === Firewall ===
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -83,6 +93,7 @@
|
||||||
git
|
git
|
||||||
nano
|
nano
|
||||||
kitty.terminfo
|
kitty.terminfo
|
||||||
|
claude-code
|
||||||
htop
|
htop
|
||||||
tmux
|
tmux
|
||||||
headscale
|
headscale
|
||||||
|
|
@ -90,9 +101,10 @@
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
# Allow unfree packages (for open-webui)
|
# Allow unfree
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
"open-webui"
|
"open-webui"
|
||||||
|
"claude-code"
|
||||||
];
|
];
|
||||||
|
|
||||||
# === SearXNG ===
|
# === SearXNG ===
|
||||||
|
|
@ -187,7 +199,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# === CrowdSec ===
|
# === CrowdSec ===
|
||||||
myModules.crowdsec.enable = true;
|
myModules.crowdsec = {
|
||||||
|
enable = true;
|
||||||
|
enableBouncer = false; # Temporarily disabled due to StateDirectory conflict
|
||||||
|
};
|
||||||
|
|
||||||
# === Headscale (Self-hosted Tailscale) ===
|
# === Headscale (Self-hosted Tailscale) ===
|
||||||
myModules.headscale = {
|
myModules.headscale = {
|
||||||
|
|
@ -205,12 +220,19 @@
|
||||||
# And add headscale_oidc_secret to your secrets.yaml
|
# And add headscale_oidc_secret to your secrets.yaml
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# === Netdata (System Monitoring) ===
|
||||||
|
myModules.netdata = {
|
||||||
|
enable = true;
|
||||||
|
domain = "netdata.ashisgreat.xyz";
|
||||||
|
};
|
||||||
|
|
||||||
# === Tailscale Client ===
|
# === Tailscale Client ===
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
# === OpenWeb UI ===
|
# === OpenWeb UI ===
|
||||||
myModules.open-webui = {
|
myModules.open-webui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
port = 8081;
|
||||||
domain = "ai.ashisgreat.xyz";
|
domain = "ai.ashisgreat.xyz";
|
||||||
ollamaUrl = "http://100.64.0.1:11434";
|
ollamaUrl = "http://100.64.0.1:11434";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue