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:
- A system running NixOS latest
- Access to the terminal with root privileges
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.