Skip to content

Instantly share code, notes, and snippets.

View xorilog's full-sized avatar
👀
curious

Christophe Boucharlat xorilog

👀
curious
View GitHub Profile
@xorilog
xorilog / nix_pin_version_of_individual_packages.md
Created February 3, 2025 10:06 — forked from toraritte/nix_pin_version_of_individual_packages.md
(work in progress) State of affairs on how to pin versions of individual Nix packages (or how to refer to a specific package version with Nix)

Yes, there are several ways to do this, but none of them are as direct and simple as git v2.1.2; htop v1.2.3 and come with a lot of caveats.

aside
Specifying versions for programming language packages are possible too, but that topic seems to be even messier. The most promising standardization effort to date is [dream2nix][1].

0. Methods

That is, available at the time of this writing:

0.1 "versioned" attribute paths (if available)

@xorilog
xorilog / install_asdf_with_nix.md
Created March 14, 2024 12:36 — forked from axelbdt/install_asdf_with_nix.md
How to Install asdf with Nix Home-manager

How to Install asdf with Nix Home-manager

  1. First, add asdf to the Nix configuration with the package named asdf-vm. Add the following line to your configuration.nix file:

    environment.systemPackages = with pkgs; [
      asdf-vm
    ];
#!/bin/bash
regions=(local ca-central-1 eu-central-1 ap-southeast-1 ap-northeast-1 us-east-1)
image_name_base="cache-bench"
image_sizes_in_mb=(64 512 1024)
dockerfile="Dockerfile.sample"
log_file=docker-bench.log