diff --git a/flake.nix b/flake.nix index 13947fa..44bcddc 100644 --- a/flake.nix +++ b/flake.nix @@ -34,8 +34,6 @@ overlays = with inputs; [ nix-matlab.overlay - # my-inputs.overlays.my-overlay - # TODO: add unstable here ]; snowfall = { diff --git a/homes/x86_64-linux/julian@aspi/default.nix b/homes/x86_64-linux/julian@aspi/default.nix index 704007e..5c85927 100644 --- a/homes/x86_64-linux/julian@aspi/default.nix +++ b/homes/x86_64-linux/julian@aspi/default.nix @@ -47,7 +47,7 @@ config, ... }: { # neocmakelsp # cmake # Rust setup - rustc + unstable.rustc rustfmt cargo clippy diff --git a/overlays/unstable/default.nix b/overlays/unstable/default.nix new file mode 100644 index 0000000..ef047aa --- /dev/null +++ b/overlays/unstable/default.nix @@ -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; + }; +}