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