sora: init glances
This commit is contained in:
parent
5fa8f049ee
commit
f5f23e1701
2 changed files with 16 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
./attic.nix
|
||||
./tailscale.nix
|
||||
./croc.nix
|
||||
./glances.nix
|
||||
|
||||
### game servers
|
||||
./terraria.nix
|
||||
|
|
15
hosts/sora/services/glances.nix
Normal file
15
hosts/sora/services/glances.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
_: {
|
||||
networking.firewall.allowedTCPPorts = [61208 61209];
|
||||
virtualisation.oci-containers.containers.glances = {
|
||||
image = "nicolargo/glances";
|
||||
ports = [
|
||||
"61208-61209:61208-61209"
|
||||
];
|
||||
volumes = [
|
||||
"/var/run/docker.sock:/var/run/docker.sock"
|
||||
];
|
||||
environment = {
|
||||
GLANCES_OPT = "-w";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue