How to install Speed Test by OpenSpeedTest™ on NixOS Latest

OpenSpeedTest™ is a popular online speed test platform. If you are using NixOS, you can also use the standalone version of OpenSpeedTest™ for your local network speed testing. In this tutorial, we will show you how to install the standalone version of OpenSpeedTest™ on NixOS latest.

Requirements

To install the OpenSpeedTest™, you need:

Steps to install OpenSpeedTest™

Follow the below steps to install OpenSpeedTest™ on your NixOS latest:

1. Create a new Nix package

First, create a new Nix package for OpenSpeedTest™ using the following command:

sudo nano /etc/nixos/configuration.nix

Paste the following code into the configuration file:

  environment.systemPackages = with pkgs; [
    (callPackage (fetchurl {
      url = "https://github.com/librespeed/speedtest/raw/master/nixops/speedtest.nix";
      sha256 = "17r0r02agtlkzd5y5rgjv5b34xmjf0rf1gnb5xmc8pxgs9jmlx5r";
    }) {})
  ];

2. Save the configuration file

Save the configuration file (Ctrl + O, Ctrl + X) and then run the following command:

sudo nixos-rebuild switch

3. Access OpenSpeedTest™

After successful installation, you can access the OpenSpeedTest™ by using the following command:

sudo speedtest --watch

Conclusion

Congratulations! You have successfully installed the standalone version of OpenSpeedTest™ on NixOS latest. You can now use it to test your local network speed throughput, and check the real-time transfer rate.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!