Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments: How to add unstable channel packages and services to NixOS configuration #68

Open
fictionbecomesfact opened this issue Nov 22, 2023 · 2 comments

Comments

@fictionbecomesfact
Copy link
Owner

fictionbecomesfact commented Nov 22, 2023

Comments for How to add unstable channel packages and services to NixOS configuration

@dmarcoux
Copy link

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;
    };
  };
};

@fictionbecomesfact
Copy link
Owner Author

Thank you for your contribution, that is indeed a useful addition

@fictionbecomesfact fictionbecomesfact changed the title Comments: NixOS - Add Unstable Channel Packages to Configuration Comments: NixOS - Add Unstable Channel Packages and Services to Configuration Apr 2, 2024
@fictionbecomesfact fictionbecomesfact changed the title Comments: NixOS - Add Unstable Channel Packages and Services to Configuration Comments: How to add unstable channel packages and services to NixOS configuration Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants