Figure out how to run nixops4 from any subdirectory in the repo #94

Open
opened 2025-01-31 11:46:24 +01:00 by fricklerhandwerk · 3 comments

Today we encountered a problem that nixops4 won't find the flake.nix when run from anywhere else but the root directory.

As a user I want to run a deployment from any directory inside the repository when I'm in the development environment.

Today we encountered a problem that `nixops4` won't find the `flake.nix` when run from anywhere else but the root directory. As a user I want to run a deployment from any directory inside the repository when I'm in the development environment.
fricklerhandwerk added the
contributor experience
label 2025-01-31 11:46:24 +01:00
Owner
[**Nix C API issue**](https://github.com/NixOS/nix/issues/10435#issuecomment-2626960076)
Owner

I guess one can hack around this by looking for a flake.nix before running NixOps4. (I guess NixOps4 could do that itself to circumvent the Nix API issue, but in a development phase it might not yet make sense to include such hacks.)

I guess one can hack around this by looking for a `flake.nix` before running NixOps4. (I guess NixOps4 could do that itself to circumvent the Nix API issue, but in a development phase it might not yet make sense to include such hacks.)
Owner

#96 does not fix this but at least documents it.

https://git.fediversity.eu/Fediversity/Fediversity/pulls/96 does not fix this but at least documents it.
kiara added the
component: nixops4
label 2025-03-03 08:15:17 +01:00
Sign in to join this conversation.
No description provided.