format && add node monitoring
All checks were successful
/ check (push) Successful in 32s

This commit is contained in:
Lzebulon 2025-11-03 23:25:59 +01:00
parent 945897643d
commit 6d99123d55
Signed by: lzebulon
GPG key ID: D6CDAB8050CBBE7D
7 changed files with 20 additions and 10 deletions

View file

@ -11,5 +11,5 @@
enable = true; enable = true;
}; };
networking.firewall.allowedTCPPorts = [80 443]; networking.firewall.allowedTCPPorts = [ 80 443 ];
} }

View file

@ -1,4 +1,4 @@
{pkgs, config,...}: { pkgs, config, ... }:
{ {
age.secrets.forgejo-runner-token-1 = { age.secrets.forgejo-runner-token-1 = {

View file

@ -1,4 +1,4 @@
{config, ...}: { config, ... }:
let let
domain = "git.${config.networking.domain}"; domain = "git.${config.networking.domain}";
in in

View file

@ -1,4 +1,4 @@
{config, ...}: { config, ... }:
{ {
age.secrets = { age.secrets = {

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ imports = [
./monitoring.nix
./users.nix ./users.nix
]; ];

View file

@ -0,0 +1,9 @@
{ ... }:
{
services.prometheus.exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
};
};
}

View file

@ -1,4 +1,4 @@
{...}: { ... }:
{ {
imports = [ imports = [
./common ./common