Skip to content

Instantly share code, notes, and snippets.

@taku0
Created February 13, 2021 07:17
Show Gist options
  • Save taku0/0ffd5caf9770cfdeda8674e4a58eb643 to your computer and use it in GitHub Desktop.
Save taku0/0ffd5caf9770cfdeda8674e4a58eb643 to your computer and use it in GitHub Desktop.
NixOS configuration for MinIO (#67684)
{ config, pkgs, ... }:
# rm -f nixos.qcow2 && nixos-rebuild build-vm -I nixos-config=./configuration.nix -I nixpkgs=. && ./result/bin/run-nixos-vm
{
nix.useSandbox = true;
nix.buildCores = 0;
nix.optimise.automatic = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
];
nixpkgs.overlays = [(self: super: rec {
})];
services.openssh.enable = true;
services.openssh.forwardX11 = true;
users.users.test = {
isNormalUser = true;
uid = 1000;
description = "Test";
extraGroups = [ "wheel" ];
initialPassword = "test";
};
services.minio = {
enable = true;
dataDir = ["/var/lib/minio/data1" "/var/lib/minio/data2"];
};
system.stateVersion = "20.09";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment