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";
|
url = "github:nix-community/home-manager/release-24.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
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
|
let
|
||||||
sysLinuxX64 = "x86_64-linux";
|
sysLinuxX64 = "x86_64-linux";
|
||||||
sysDarwin = "aarch64-darwin";
|
sysDarwin = "aarch64-darwin";
|
||||||
@ -21,22 +25,29 @@
|
|||||||
inherit cudaSupport;
|
inherit cudaSupport;
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extOverlays = [
|
||||||
|
(nvidia-patch.overlays.default)
|
||||||
|
];
|
||||||
in
|
in
|
||||||
import nixpkgs rec {
|
import nixpkgs rec {
|
||||||
inherit system config;
|
inherit system config;
|
||||||
|
|
||||||
unstablePkgs = import nixos-unstable {
|
unstablePkgs = import nixos-unstable {
|
||||||
inherit system config;
|
inherit system config;
|
||||||
|
|
||||||
|
overlays = extOverlays;
|
||||||
};
|
};
|
||||||
|
|
||||||
localPkgs = import local-unstable {
|
localPkgs = import local-unstable {
|
||||||
inherit system config;
|
inherit system config;
|
||||||
|
overlays = extOverlays;
|
||||||
};
|
};
|
||||||
|
|
||||||
overlays = [
|
overlays = [
|
||||||
(final: prev: { inherit unstablePkgs; })
|
(final: prev: { inherit unstablePkgs; })
|
||||||
(final: prev: { inherit localPkgs; })
|
(final: prev: { inherit localPkgs; })
|
||||||
];
|
] ++ extOverlays;
|
||||||
};
|
};
|
||||||
|
|
||||||
wrapUtils = { pkgs, system }:
|
wrapUtils = { pkgs, system }:
|
||||||
|
Loading…
Reference in New Issue
Block a user