diff --git a/hosts/sora/services/default.nix b/hosts/sora/services/default.nix index 0d5db25..10b7e2a 100644 --- a/hosts/sora/services/default.nix +++ b/hosts/sora/services/default.nix @@ -7,6 +7,7 @@ ./attic.nix ./tailscale.nix ./croc.nix + ./glances.nix ### game servers ./terraria.nix diff --git a/hosts/sora/services/glances.nix b/hosts/sora/services/glances.nix new file mode 100644 index 0000000..6fa41e7 --- /dev/null +++ b/hosts/sora/services/glances.nix @@ -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"; + }; + }; +}