/etc/nixos/configuration.nix:
{
# ...
imports = [
(import (fetchTarball {
url = "https://github.com/TawasalMessenger/aerospike-flake/archive/5.5.0.3-1.tar.gz";
sha256 = "16xvmr8jjgjz4ivh7bwz8780768dhmcwxz4v9a0jds2vphb9wpq4";
})).nixosModule
];
services.aerospike.enable = true;
# Only this version supports `submodules` attribute for fetchTree
nix.package = with pkgs; nixUnstable.overrideAttrs (_: {
name = "nix-2.4";
suffix = "";
src = fetchFromGitHub {
owner = "NixOS";
repo = "nix";
rev = "b7bfc7ee52dd425e0156f369eb4c05a62358f912";
sha256 = "WCUtN3ICisLlSRDk4Tgl9Gh7+74TuNGsAXwKHpm3uVg=";
};
patches = [ ];
});
# ...
}