feat: glances
This commit is contained in:
parent
7edee1c4ba
commit
d69b65369b
2 changed files with 21 additions and 1 deletions
|
@ -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
20
common/nixos/glances.nix
Normal 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"];
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue