Fernando Ayats
Fernando Ayats
I already added a NixOS module, and I don't use HM.
The issue still persists on Plasma 6 and nixos-unstable for me. ``` Revision: 1355a0cbfeac61d785b7183c0caaec1f97361b43 Last modified: 2024-09-10 17:58:18 ```
It's caused by https://github.com/nix-community/nh/commit/98283f9aa1cbe9fdc4ec1813a0e0ec2f2dae393a that passes through `HOME`
> ``` > [root@laptop:/home/coco]# nh clean all > ! Failed to read profiles directory dir="/root/.local/state/nix/profiles" error=Os { code: 2, kind: NotFound, message: "No such file or directory" } (nh/src/clean.rs:281) >...
Could you try if that's the case?
Pinging @adamjstewart because of https://github.com/spack/spack/pull/3762
Indeed. Maybe autoconfiguring the child nix process is debatable, but at least nh should show a warning.
Yeah, I was thinking the same. It shouldn't add much overhead, and there's no need to parse the whole json, just what we need
I don't want to implement that unless we can get completion support, and I don't have the bandwidth to look into implementing that.
From a quick search, this seems to be the way to implement it: https://docs.rs/clap_complete/latest/clap_complete/engine/struct.ArgValueCompleter.html https://github.com/clap-rs/clap/issues/1232 https://github.com/clap-rs/clap/issues/3166