From efa2ce3940dffb7b390f93f1f236bf2056db5fcd Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Wed, 4 Dec 2024 14:34:01 +0000 Subject: [PATCH] nix: use same nixpkgs flake for imperative commands as for build --- common/nix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/nix.nix b/common/nix.nix index 9361188..b904568 100644 --- a/common/nix.nix +++ b/common/nix.nix @@ -2,6 +2,11 @@ { nix.settings.experimental-features = "nix-command flakes"; + nixpkgs.flake = { + source = lib.cleanSource pkgs.path; + setNixPath = true; + setFlakeRegistry = true; + }; nix.nixPath = [ "nixpkgs=flake:nixpkgs" ]; nixpkgs.config.allowUnfree = true; }