Currently the only way to switch the depexts to Nix mode on both Linux and macOS is to set os-family=nixos. However this doesn't seem ideal given nixos is the name of a distribution whereas nix is the name of the package manager.
I would've proposed a PR, however either changing os-family=nixos to os-family=nix or allowing nix to be both detected as Nix, would break opam-repository in its current state which expects os-family=nixos. We could add os-family = "nixos" | os-family = "nix" everywhere but that complicates things and doesn't seem ideal.
Currently the only way to switch the depexts to Nix mode on both Linux and macOS is to set
os-family=nixos. However this doesn't seem ideal givennixosis the name of a distribution whereasnixis the name of the package manager.I would've proposed a PR, however either changing
os-family=nixostoos-family=nixor allowingnixto be both detected as Nix, would break opam-repository in its current state which expectsos-family=nixos. We could addos-family = "nixos" | os-family = "nix"everywhere but that complicates things and doesn't seem ideal.