feat: glances

This commit is contained in:
Kyle Brown 2024-01-21 13:01:02 -08:00
parent 7edee1c4ba
commit d69b65369b
2 changed files with 21 additions and 1 deletions

View file

@ -10,7 +10,7 @@
./packages.nix
./users.nix
./locale.nix
# ./prometheus.nix
./glances.nix
];
#
nixpkgs.config.allowUnfree = true;

20
common/nixos/glances.nix Normal file
View file

@ -0,0 +1,20 @@
{
config,
lib,
pkgs,
inputs,
outputs,
...
}: {
systemd.services.glances = {
enable = true;
description = "Services web server";
unitConfig = {
Type = "simple";
};
serviceConfig = {
ExecStart = "${pkgs.glances}/bin/glances -w";
};
wantedBy = ["multi-user.target"];
};
}