Add unstable overlay

This commit is contained in:
Julian Mutter 2024-04-17 08:21:53 +02:00
parent 1ffd0463bd
commit 49838d3808
3 changed files with 18 additions and 3 deletions

View File

@ -34,8 +34,6 @@
overlays = with inputs;
[
nix-matlab.overlay
# my-inputs.overlays.my-overlay
# TODO: add unstable here
];
snowfall = {

View File

@ -47,7 +47,7 @@ config, ... }: {
# neocmakelsp # cmake
# Rust setup
rustc
unstable.rustc
rustfmt
cargo
clippy

View File

@ -0,0 +1,17 @@
# Snowfall Lib provides access to your current Nix channels and inputs.
#
# Channels are named after NixPkgs instances in your flake inputs. For example,
# with the input `nixpkgs` there will be a channel available at `channels.nixpkgs`.
# These channels are system-specific instances of NixPkgs that can be used to quickly
# pull packages into your overlay.
#
# All other arguments for this function are your flake inputs.
{ nixpkgs-unstable, ... }:
final: prev: {
# unstable = nixpkgs-unstable.legacyPackages.${prev.system};
# use this variant if unfree packages are needed:
unstable = import nixpkgs-unstable {
system = prev.system;
config.allowUnfree = true;
};
}