Merge pull request 'fix: outside of direnv clan-li warns show-config deprecated' (#1619) from samrose/clan-core:sam/show-config into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/1619 Reviewed-by: kenji <aks.kenji@protonmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@ import tempfile
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from .cmd import run
|
||||
from .cmd import run, run_no_stdout
|
||||
from .dirs import nixpkgs_flake, nixpkgs_source
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ def nix_add_to_gcroots(nix_path: Path, dest: Path) -> None:
|
||||
|
||||
def nix_config() -> dict[str, Any]:
|
||||
cmd = nix_command(["show-config", "--json"])
|
||||
proc = run(cmd)
|
||||
proc = run_no_stdout(cmd)
|
||||
data = json.loads(proc.stdout)
|
||||
config = {}
|
||||
for key, value in data.items():
|
||||
|
||||
Reference in New Issue
Block a user