-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
53 lines (52 loc) · 1.97 KB
/
default.nix
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ load_pin ? x: builtins.fromJSON (builtins.readFile x)
, nixpkgs_pin ? load_pin ./pins/nixpkgs.json
, jpetrucciani_pin ? load_pin ./pins/jpetrucciani.json
, pkgs ? import
(fetchTarball {
inherit (nixpkgs_pin) sha256;
name = "nixpkgs-unstable-${nixpkgs_pin.date}";
url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgs_pin.rev}.tar.gz";
})
{
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [
"nodejs-16.20.2"
];
} // config;
overlays = [ (_: _: { inherit jacobi; }) ] ++ (import ./mods/default.nix) ++ overlays;
}
, jacobi ? import
(fetchTarball {
inherit (jpetrucciani_pin) sha256;
name = "jpetrucciani-${jpetrucciani_pin.date}";
url = "https://github.com/jpetrucciani/nix/archive/${jpetrucciani_pin.rev}.tar.gz";
})
{ inherit config system; }
, overlays ? [ ]
, python_overlays ? [ ]
, config ? { }
, system ? builtins.currentSystem
}:
let
packageOverrides = pkgs.lib.composeManyExtensions (jacobi.python311.overlays ++ [
(import ./mods/python/china.nix)
] ++ python_overlays);
python311 = pkgs.python311.override { self = python311; inherit packageOverrides; };
python312 = pkgs.python312.override { self = python312; inherit packageOverrides; };
python313 = pkgs.python313.override { self = python313; inherit packageOverrides; };
python = python311;
jacobi_tools = {
inherit (jacobi) batwhich get_cert github_tags gke_config gke-gcloud-auth-plugin;
inherit (jacobi) portwatch __rd __rd_shell __pg_bootstrap __pg_shell __pg __run;
inherit (jacobi) pog hex hexcast nixup nixcache nixsum nix_hash_medable nix_hash_jpetrucciani;
inherit (jacobi) srv _zaddy zaddy;
inherit (jacobi) poetry2nix nix2container foundry terraform_1-5-5;
};
in
pkgs // pkgs.custom // jacobi_tools // {
inherit jacobi jacobi_tools python python311 python312 python313;
ktools = jacobi.k8s_pog_scripts;
dtools = jacobi.docker_pog_scripts;
}