Open fictionbecomesfact opened 7 months ago
Thank you for sharing this. I went a step further to have reproducible builds and ended up pinning the unstable channel to a specific commit. This is how I've done it:
nixpkgs.config = {
packageOverrides = pkgs: {
unstable = import (builtins.fetchTarball {
# Descriptive name to make the store path easier to identify
name = "nixos-unstable-25-11-2023";
# Find the hash of the latest commit for nixos-unstable with
# git ls-remote https://github.com/nixos/nixpkgs nixos-unstable
url = "https://github.com/nixos/nixpkgs/archive/19cbff58383a4ae384dea4d1d0c823d72b49d614.tar.gz";
# Obtained using `nix-prefetch-url --unpack <url>`
sha256 = "0dzvnjccsnc2661yks0xypj2px335k6abysm335z1yh3qfi3rd6a";
}) {
config = config.nixpkgs.config;
};
};
};
Thank you for your contribution, that is indeed a useful addition
Comments for NixOS - Add Unstable Channel Packages and Services to Configuration