-
Before flake-parts, I've ben setting unstable as an overlay (self: super: { unstable = import inputs.nixpkgs-unstable { inherit system; }; }) I believe the same can be achieved with flake-parts: imports = [
inputs.flake-parts.flakeModules.easyOverlay
];
perSystem = { config, pkgs, final, system, ... }:
let
unstable = import inputs.nixpkgs-unstable {
inherit system;
};
in
{
overlayAttrs = {
inherit unstable;
};
}; This works well and defined in a special However, in some parts I need to extend packages specificly for those parts, for example set unfreePredicate – which is ignored apparently because easyOverlay forces it's own nixpkgs configuration. Is it possible to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I think something went wrong with your post.
|
Beta Was this translation helpful? Give feedback.
-
@onsails, I came across this issue for a different reason than using the Some more modular ways to do this seem to be:
Something I was expecting which did not work, which might also have been your assumption, was:
|
Beta Was this translation helpful? Give feedback.
@onsails, I came across this issue for a different reason than using the
pkgs.unstable
pattern, but I would like to point out that it seems as if the "flake-parts" way is to avoid this pattern of a global namespace as much as possible.Some more modular ways to do this seem to be:
pkgs.nix
flake, or use something like https://github.com/fufexan/dotfiles/tree/main/pkgs/default.nix which can use packages via aself'.packages
property