.github
.vscode
docs
hydra
keys
lib
modules
systems
artemision
bob
palatine-hill
attic
docker
archiveteam.nix
books.nix
default.nix
firefly.nix
foundry.nix
glances.nix
haproxy.cfg
haproxy.nix
minecraft.nix
nextcloud.nix
postgres.nix
restic.nix
torr.nix
unifi.nix
attic.nix
configuration.nix
default.nix
hardware-changes.nix
hardware.nix
hydra.nix
minio.nix
networking.nix
nextcloud.nix
secrets.yaml
services.nix
vars.nix
zfs.nix
rhapsody-in-green
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
CONTRIBUTING.md
README.md
checks.nix
flake.lock
flake.nix
shell.nix
statix.toml
treefmt.toml
26 lines
569 B
Nix
26 lines
569 B
Nix
|
{ ... }:
|
||
|
|
||
|
let
|
||
|
vars = import ../vars.nix;
|
||
|
glances_path = "${vars.primary_docker}/glances";
|
||
|
in
|
||
|
{
|
||
|
virtualisation.oci-containers.containers = {
|
||
|
glances = {
|
||
|
image = "nicolargo/glances:latest-full";
|
||
|
extraOptions = [
|
||
|
"--restart=always"
|
||
|
"--pid=host"
|
||
|
"--network=haproxy-net"
|
||
|
];
|
||
|
volumes = [
|
||
|
"/var/run/docker.sock:/var/run/docker.sock"
|
||
|
"${glances_path}/glances.conf:/glances/conf/glances.conf"
|
||
|
];
|
||
|
environment = {
|
||
|
GLANCES_OPT = "-C /glances/conf/glances.conf -w";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|