Merge pull request #283 from Kranzes/patch-1

flake.nix: Add nixpkgs-update cachix as an extra substituter to the
This commit is contained in:
Ryan Mulligan 2022-03-15 16:09:47 -07:00 committed by GitHub
commit c1dfdadb57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,9 @@
inputs.nixpkgs = { type = "github"; owner = "nixos"; repo = "nixpkgs"; };
inputs.mmdoc.url = "github:ryantm/mmdoc";
nixConfig.extra-substituters = [ "https://nixpkgs-update.cachix.org" ];
nixConfig.extra-trusted-public-keys = [ "nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8=" ];
outputs = { self, flake-compat, nixpkgs, nixpkgs-review, mmdoc } @ args:
{
packages."x86_64-linux" = import ./pkgs/default.nix (args // { system = "x86_64-linux"; });
@ -15,6 +18,5 @@
packages."x86_64-darwin" = import ./pkgs/default.nix (args // { system = "x86_64-darwin"; });
defaultPackage."x86_64-darwin" = self.packages."x86_64-darwin".nixpkgs-update;
devShell."x86_64-darwin" = self.packages."x86_64-darwin".devShell;
};
}