Skip to content

nix should be the os-family for both nixos and for users requesting Nix #7087

Description

@kit-ty-kate

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions