♻️ refactor some monitoring configs
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{ config, ... }: {
|
||||
|
||||
imports = [ ./common.nix ];
|
||||
imports = [ ./common.nix ../monitoring ];
|
||||
|
||||
nix = {
|
||||
gc = {
|
||||
@ -20,6 +20,11 @@
|
||||
mosh.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
openssh.enable = true;
|
||||
tailscale.enable = true;
|
||||
};
|
||||
|
||||
system = {
|
||||
autoUpgrade = {
|
||||
enable = true;
|
||||
|
17
modules/monitoring/default.nix
Normal file
17
modules/monitoring/default.nix
Normal file
@ -0,0 +1,17 @@
|
||||
_:
|
||||
|
||||
{
|
||||
services = {
|
||||
prometheus = {
|
||||
enable = true;
|
||||
port = 9090;
|
||||
exporters = {
|
||||
node = {
|
||||
enable = true;
|
||||
enabledCollectors = [ "systemd" ];
|
||||
port = 9100;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user