From c355e2ad394a3c925acf24c87854e0898d0e328d Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Sat, 17 Aug 2024 11:45:51 -0700 Subject: [PATCH] ensure we don't use aliases again accidentally --- flake.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 3f65fb2d..136e1601 100644 --- a/flake.nix +++ b/flake.nix @@ -60,7 +60,14 @@ in inputs.flake-utils.lib.eachDefaultSystem (system: let - pkgs = inputs.nixpkgs.legacyPackages.${system}; + pkgs = import inputs.nixpkgs { + inherit system; + + # Some users find it useful to set this on their Nixpkgs instance and + # we want to support that use case, so we set it here too to help us + # test/ensure that this works. + config.allowAliases = false; + }; in { packages = { @@ -79,6 +86,11 @@ crossSystem = { config = crossSystem; }; + + # Some users find it useful to set this on their Nixpkgs + # instance and we want to support that use case, so we set + # it here too to help us test/ensure that this works. + config.allowAliases = false; }).pkgsStatic; in [