fix(flake): apply overalays to each pkg group
This commit is contained in:
parent
1ebd0a3975
commit
fa66653655
15
flake.nix
15
flake.nix
@ -7,9 +7,13 @@
|
||||
url = "github:nix-community/home-manager/release-24.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nvidia-patch = {
|
||||
url = "github:icewind1991/nvidia-patch-nixos";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixos-unstable, local-unstable, home-manager }:
|
||||
outputs = { self, nixpkgs, nixos-unstable, local-unstable, home-manager, nvidia-patch }:
|
||||
let
|
||||
sysLinuxX64 = "x86_64-linux";
|
||||
sysDarwin = "aarch64-darwin";
|
||||
@ -21,22 +25,29 @@
|
||||
inherit cudaSupport;
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
extOverlays = [
|
||||
(nvidia-patch.overlays.default)
|
||||
];
|
||||
in
|
||||
import nixpkgs rec {
|
||||
inherit system config;
|
||||
|
||||
unstablePkgs = import nixos-unstable {
|
||||
inherit system config;
|
||||
|
||||
overlays = extOverlays;
|
||||
};
|
||||
|
||||
localPkgs = import local-unstable {
|
||||
inherit system config;
|
||||
overlays = extOverlays;
|
||||
};
|
||||
|
||||
overlays = [
|
||||
(final: prev: { inherit unstablePkgs; })
|
||||
(final: prev: { inherit localPkgs; })
|
||||
];
|
||||
] ++ extOverlays;
|
||||
};
|
||||
|
||||
wrapUtils = { pkgs, system }:
|
||||
|
Loading…
Reference in New Issue
Block a user