make nix-packages content addressed

This commit is contained in:
Charlotte 🦝 Delenk 2022-07-03 10:58:04 +01:00
parent 365638ceaf
commit 33bd67a401
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -46,7 +46,10 @@
} @ inputs: } @ inputs:
flake-utils.lib.eachDefaultSystem ( flake-utils.lib.eachDefaultSystem (
system: let system: let
pkgs = import nixpkgs {inherit system;}; pkgs = import nixpkgs {
inherit system;
config.contentAddressedByDefault = true;
};
in rec { in rec {
formatter = pkgs.alejandra; formatter = pkgs.alejandra;
@ -75,7 +78,7 @@
hydraJobs = hydraJobs =
if system == "x86_64-linux" if system == "x86_64-linux"
then { then {
inherit packages devShells; inherit packages devShells formatter;
inherit (inputs.cargo2nix.packages.${system}) cargo2nix; inherit (inputs.cargo2nix.packages.${system}) cargo2nix;
} }
else {}; else {};