Closed ian-h-chamberlain closed 2 days ago
It should be okay to move the file as long as you don’t restart the Nix daemon before activating your system configuration (and in that case you can just put it back). We don’t have an explicit override mechanism right now, but doing the move manually is matching exactly what the installer would do anyway.
The proper resolution should be as simple as adding the known hashes (and preferably copies of the files into doc/known-files
), like you said. Would you be up for making a pull request?
Sure, let me figure out what permutations are possible and try to submit a PR! Meanwhile I'll also see if installation works just by moving the file and go from there.
I was looking to get started with
nix-darwin
, and tried to do a clean-slate install after uninstalling everything Nix from my Mac and then reinstalling with Lix, but ran into this (I think something similar to #880):I don't want to delete that file as it seems like it would be important:
The installer:
Is this just a matter of adding another "known hash" like #881 ? I think there might also exist a variant of the
nix.conf
that would not useexperimental-features = nix-command flakes
, since Lix asks whether it should enable flakes at installation time. I'm not sure if the output is totally deterministic, it seems like it could vary a bit: https://git.lix.systems/lix-project/lix-installer#installation-differencesMeanwhile, is there any workaround to get past this and install anyway (like providing my own hash or explicitly ignoring the file, or something like https://github.com/LnL7/nix-darwin/wiki/Running-a-locally-patched-version-of-nix-darwin)? Is this something that would need to be fixed by Lix upstream somehow and I should file an issue there?
Thanks in advance! I was hoping these two could work together, as I preferred using Lix on Linux but seems like getting started might be a little trickier than I thought 😆