From 8a7d1c60729cfc7767328888b433ed8b781bc42e Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sat, 27 Nov 2021 21:21:07 +0100 Subject: [PATCH] use cachix --- cachix.nix | 14 ++++++++++++++ cachix/ropfuscator.nix | 12 ++++++++++++ flake.lock | 18 +++++++++--------- 3 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 cachix.nix create mode 100644 cachix/ropfuscator.nix diff --git a/cachix.nix b/cachix.nix new file mode 100644 index 0000000..cce90a3 --- /dev/null +++ b/cachix.nix @@ -0,0 +1,14 @@ + +# WARN: this file will get overwritten by $ cachix use +{ pkgs, lib, ... }: + +let + folder = ./cachix; + toImport = name: value: folder + ("/" + name); + filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key; + imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder)); +in { + inherit imports; + nix.binaryCaches = ["https://cache.nixos.org/"]; +} + \ No newline at end of file diff --git a/cachix/ropfuscator.nix b/cachix/ropfuscator.nix new file mode 100644 index 0000000..f91cdad --- /dev/null +++ b/cachix/ropfuscator.nix @@ -0,0 +1,12 @@ + +{ + nix = { + binaryCaches = [ + "https://ropfuscator.cachix.org" + ]; + binaryCachePublicKeys = [ + "ropfuscator.cachix.org-1:LZ03aJ1yqFlxpU+wfGhLlOkA3MwXqnntd2Wk7u2LnHQ=" + ]; + }; +} + \ No newline at end of file diff --git a/flake.lock b/flake.lock index f332b31..1158da2 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1637019201, - "narHash": "sha256-lq4gz51fx4m5FXfx1SCB444aEBeaYtLMVm3P18Wi9ls=", + "lastModified": 1637917894, + "narHash": "sha256-mzkyjq+OW1K5XHG43zrnjJX/K1ehahVWlKjMzWX/Vvg=", "owner": "rycee", "repo": "home-manager", - "rev": "bcf03fa16a1f06b8a0abb27bf49afa8d6fffe8f1", + "rev": "7efd99ef876c220848553ae10218685d5e5d79cb", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixos-unstable": { "locked": { - "lastModified": 1637595801, - "narHash": "sha256-LkIMwVFKCuEqidaUdg8uxwpESAXjsPo4oCz3eJ7RaRw=", + "lastModified": 1637841632, + "narHash": "sha256-QYqiKHdda0EOnLGQCHE+GluD/Lq2EJj4hVTooPM55Ic=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "263ef4cc4146c9fab808085487438c625d4426a9", + "rev": "73369f8d0864854d1acfa7f1e6217f7d6b6e3fa1", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1637615379, - "narHash": "sha256-wL5+nm7z+42IHyhc52P3aAj1Kp2fQ6C8IyPBihj7Bjg=", + "lastModified": 1637875414, + "narHash": "sha256-Ica++SXFuLyxX9Q7YxhfZulUif6/gwM8AEQYlUxqSgE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "09650059d7f5ae59a7f0fb2dd3bfc6d2042a74de", + "rev": "3bea86e918d8b54aa49780505d2d4cd9261413be", "type": "github" }, "original": {