RustFS NixOS module.
First, add the flake to your flakes:
{
inputs = {
rustfs.url = "github:rustfs/rustfs-flake";
rustfs.inputs.nixpkgs.follows = "nixpkgs";
};
}And then import the flake:
imports = [
inputs.rustfs.nixosModules.rustfs
];Then, add the flake to your configuration.nix:
services = {
rustfs = {
enable = true;
package = inputs.rustfs.packages.${pkgs.stdenv.hostPlatform.system}.default;
accessKey = "rustfsadmin";
secretKey = "rustfsadmin";
volumes = "/tmp/rustfs";
address = ":9000";
consoleEnable = true;
};
};You can also install the rustfs itself (Just binary):
just install following as a package:
inputs.rustfs.packages.${pkgs.stdenv.hostPlatform.system}.defaultEnables the rustfs service.
The rustfs package providing the rustfs binary.
The access key for the rustfs server.
The secret key for the rustfs server.
The volumes to mount.
The address to listen on.
Whether to enable the console.
The log level.
The log directory.
The TLS directory.
Additional environment variables to set for the RustFS service.
These will be appended to the environment file at /etc/default/rustfs.
Used for advanced configuration not covered by other options. (e.g. RUST_BACKTRACE)