Add serokell substituter

This commit is contained in:
Alexander Bantyev 2021-07-27 16:13:35 +03:00
parent 08942bab84
commit 9c5e9be7de
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -1,7 +1,10 @@
{ pkgs, lib, inputs, ... }: { { pkgs, lib, inputs, ... }: {
nix = rec { nix = rec {
nixPath = lib.mkForce [ "self=/etc/self/compat" "nixpkgs=/etc/nixpkgs" ]; nixPath = lib.mkForce [ "self=/etc/self/compat" "nixpkgs=/etc/nixpkgs" ];
binaryCaches = [ "https://cache.nixos.org" ]; binaryCaches = [
"https://cache.nixos.org"
"s3://serokell-private-cache?endpoint=s3.eu-central-1.wasabisys.com&profile=serokell-private-cache-wasabi"
];
registry.self.flake = inputs.self; registry.self.flake = inputs.self;
registry.np.flake = inputs.nixpkgs; registry.np.flake = inputs.nixpkgs;
@ -14,10 +17,11 @@
binaryCachePublicKeys = [ binaryCachePublicKeys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"serokell-1:aIojg2Vxgv7MkzPJoftOO/I8HKX622sT+c0fjnZBLj0="
]; ];
package = inputs.nix.defaultPackage.x86_64-linux.overrideAttrs (oa: { package = inputs.nix.defaultPackage.x86_64-linux.overrideAttrs (oa: {
patches = [./nix.patch] ++ oa.patches or []; patches = [ ./nix.patch ] ++ oa.patches or [ ];
# HAHA # HAHA
doInstallCheck = false; doInstallCheck = false;
}); });