diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-27 19:03:45 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-27 19:05:01 -0800 |
commit | 7a216c49486e5a124b6951a3902d40ec7228ead0 (patch) | |
tree | e6533c9003d4834ffe4528a4de101c1923b9b37a | |
parent | firefox: a few more settings (diff) | |
download | world-7a216c49486e5a124b6951a3902d40ec7228ead0.tar.gz |
server: create a new profile
This is a profile for servers related stuff. We start with monitoring for now.
-rw-r--r-- | hosts/common/server/default.nix | 7 | ||||
-rw-r--r-- | hosts/common/server/monitoring.nix | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/hosts/common/server/default.nix b/hosts/common/server/default.nix new file mode 100644 index 0000000..2986f66 --- /dev/null +++ b/hosts/common/server/default.nix @@ -0,0 +1,7 @@ +{ config, pkgs, lib, ... }: + +{ + imports = [ + ./monitoring.nix + ]; +} diff --git a/hosts/common/server/monitoring.nix b/hosts/common/server/monitoring.nix new file mode 100644 index 0000000..a893721 --- /dev/null +++ b/hosts/common/server/monitoring.nix @@ -0,0 +1,12 @@ +{ config, pkgs, lib, ... }: + +{ + services.prometheus = { + exporters = { + node = { + enable = true; + enabledCollectors = [ "systemd" ]; + }; + }; + }; +} |