Skip to content
Discussion options

You must be logged in to vote

There are a number of ways to do this, including with den...

I, personally, just run unstable but I have support in my config to specify separate channels in my host-schema with instantiate overrides to switch between nixos-stable, nixos-unstable, and nixpkgs-master on the hosts themselves.

You can use pkg overlays to expose unstable packages to stable systems:

  unstable-packages = final: _prev: {
    unstable = import inputs.nixpkgs-unstable {
      inherit (final.stdenv.hostPlatform) system;
      config.allowUnfree = true;
    };
  };

Alternatively, you could use a policy.resolve to project a custom-pkgs object from the outer flake/den context into a class; but that's probably overkil…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by aShabat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants