summaryrefslogtreecommitdiff
path: root/lib/kansai-pkgs.nix
blob: dd189b85e7f77f8bafc579bfcb5ac2dfeda6d3bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  systemsAttributes,
  nixpkgs,
  self,
}:
{
  nixpkgsAllowUnfree ? false,
  nixpkgsCudaSupport ? false,
  nixpkgsAllowUnfreePredicate ? [ ],
  nixpkgsExtraConfig ? { },
}:
(systemsAttributes (
  system:
  import nixpkgs {
    inherit system;

    overlays = import "${self}/lib/overlays.nix" { inherit self; };

    config = {
      allowUnfree = nixpkgsAllowUnfree;
      cudaSupport = nixpkgsCudaSupport;
      allowUnfreePredicate = nixpkgsAllowUnfreePredicate;
    } // nixpkgsExtraConfig;
  }
))