From 627b11d21b4aadcf277f67c536d99177009e466c Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 7 Dec 2021 15:28:09 +0100 Subject: [PATCH] makeShell: use old nix tooling The `nix` command is an experimental feature and should be avoided in user-facing code. I recently saw `nix eval` failing for a user who was asking for help via Matrix. --- helper/makeShell.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helper/makeShell.nix b/helper/makeShell.nix index 933ecb4..7dd93fb 100644 --- a/helper/makeShell.nix +++ b/helper/makeShell.nix @@ -106,7 +106,8 @@ pkgs.stdenv.mkDerivation { )} eval-config() { - NIXOS_CONFIG="${cfgDir}/krops/krops-configuration.nix" nix eval --raw -f ${nixpkgs}/nixos system.outPath + NIXOS_CONFIG="${cfgDir}/krops/krops-configuration.nix" \ + nix-instantiate --eval ${nixpkgs}/nixos -A system.outPath | tr -d '"' echo }