Add LibreNMS service
This commit is contained in:
parent
f20c086d6f
commit
c0f26a47f2
10 changed files with 151 additions and 0 deletions
|
|
@ -127,6 +127,12 @@ in
|
|||
domain = p.domains.public;
|
||||
host = p.hosts.portainer;
|
||||
};
|
||||
|
||||
librenms.proxy = {
|
||||
enable = true;
|
||||
domain = p.domains.public;
|
||||
host = p.hosts.librenms;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -195,6 +195,15 @@
|
|||
];
|
||||
};
|
||||
|
||||
librenms = {
|
||||
module = ./librenms;
|
||||
tags = [
|
||||
"lxc"
|
||||
"bacco"
|
||||
"librenms"
|
||||
];
|
||||
};
|
||||
|
||||
# Special hosts (non-LXC or local deployment)
|
||||
# deadbeef = {
|
||||
# module = ./deadbeef;
|
||||
|
|
|
|||
33
hosts/librenms/default.nix
Normal file
33
hosts/librenms/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
p = import ../parameters.nix;
|
||||
in
|
||||
{
|
||||
my = {
|
||||
utils = {
|
||||
commons.enable = true;
|
||||
lxc-standard.enable = true;
|
||||
};
|
||||
|
||||
monitoring.librenms = {
|
||||
enable = true;
|
||||
hostname = p.hosts.librenms;
|
||||
settings = {
|
||||
"snmp.community" = [ "public" "homelab" ];
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.proxmox.enable = true;
|
||||
};
|
||||
|
||||
# Extra packages
|
||||
environment.systemPackages = with pkgs; [ ];
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
|
|
@ -32,6 +32,7 @@ in
|
|||
forgejo-runner = "forgejo-runner.${private-domain}";
|
||||
n8n = "n8n.${private-domain}";
|
||||
ilpost-podcast = "ilpost-podcast.${private-domain}";
|
||||
librenms = "librenms.${private-domain}";
|
||||
};
|
||||
email = "davide@${public-domain}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue