nix: use same nixpkgs flake for imperative commands as for build

This commit is contained in:
Katherina Walshe-Grey 2024-12-04 14:34:01 +00:00
parent 98b43911f0
commit efa2ce3940

View file

@ -2,6 +2,11 @@
{ {
nix.settings.experimental-features = "nix-command flakes"; nix.settings.experimental-features = "nix-command flakes";
nixpkgs.flake = {
source = lib.cleanSource pkgs.path;
setNixPath = true;
setFlakeRegistry = true;
};
nix.nixPath = [ "nixpkgs=flake:nixpkgs" ]; nix.nixPath = [ "nixpkgs=flake:nixpkgs" ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
} }