flake, overlays: move stable and master overlays to host config
Defining the `stable` and `master` package overlays directly in `flake/hosts.nix` allows them to properly inherit `config.nixpkgs.config` from the specific host.
This commit is contained in:
+18
-2
@@ -9,8 +9,24 @@
|
||||
}:
|
||||
let
|
||||
vars = import ../vars.nix;
|
||||
pkgsModule = {
|
||||
nixpkgs = pkgsParams;
|
||||
pkgsModule = { config, ... }: {
|
||||
nixpkgs = lib.mkMerge [
|
||||
pkgsParams
|
||||
{
|
||||
overlays = [
|
||||
(final: _prev: {
|
||||
stable = import inputs.nixpkgs-stable {
|
||||
inherit (final.stdenv.hostPlatform) system;
|
||||
inherit (config.nixpkgs) config;
|
||||
};
|
||||
master = import inputs.nixpkgs-master {
|
||||
inherit (final.stdenv.hostPlatform) system;
|
||||
inherit (config.nixpkgs) config;
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
hmModule = {
|
||||
home-manager = {
|
||||
|
||||
Reference in New Issue
Block a user