make nix-packages content addressed
This commit is contained in:
parent
365638ceaf
commit
33bd67a401
1 changed files with 5 additions and 2 deletions
|
@ -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 {};
|
||||||
|
|
Reference in a new issue