Adding unstable to pkgs.unstable and try apply it at runtime

This commit is contained in:
2022-12-19 22:42:15 +01:00
parent d52a7295b5
commit c3d6e55a63
5 changed files with 42 additions and 25 deletions

View File

@@ -36,16 +36,24 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
/* This makes commandline tools like
** nix run nixpkgs#hello
** and nix-shell -p hello
** use the same channel the system
** was built with
*/
# This makes commandline tools like nix run nixpkgs#hello
# and nix-shell -p hello use the same channel the system was built with
nix.registry = {
nixpkgs.flake = inputs.nixpkgs;
};
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
nix.nixPath = [
"nixpkgs=${inputs.nixpkgs}"
"nixpkgs-overlays=${./overlays-compat}/"
];
# Allows access to nixpkgs-unstable via pkgs.unstable
nixpkgs.overlays = let
unstable-overlay = final: prev: {
unstable = inputs.unstable.legacyPackages.${prev.system};
};
in [
unstable-overlay
];
environment.systemPackages = with pkgs; [
file