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.
This commit is contained in:
Erik Arvstedt 2021-12-07 15:28:09 +01:00
parent 8a7ec27e6d
commit 627b11d21b
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -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
}