From 33bd67a40158782635beef30c2bcdd720ead2d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 3 Jul 2022 10:58:04 +0100 Subject: [PATCH] make nix-packages content addressed --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 4b66d0c..1648864 100644 --- a/flake.nix +++ b/flake.nix @@ -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 {};