nmattia / niv

Easy dependency management for Nix projects
https://github.com/nmattia/niv
MIT License
1.52k stars 74 forks source link

Update the default nixpkgs to a rolling release #369

Closed mweinelt closed 1 year ago

mweinelt commented 1 year ago

For security reasons niv should not initialize with a potentially outdated nixpkgs, that won't receive updates when even when the user calls niv update.

Case in point: https://github.com/NixOS/nixpkgs/issues/227804#issuecomment-1519187006

turboMaCk commented 1 year ago

:+1: for the change

gilice commented 1 year ago

why nixos- and not nixpkgs-unstable?

nmattia commented 1 year ago

good question CC @mweinelt !

mweinelt commented 1 year ago

The nixos-* channels only cover aarch64- and x86_64-linux, but only gets bumped when the integration tests succeed, while nixpkgs-* only covers packages, but waits for darwin packages to build.

nmattia commented 1 year ago

@mweinelt then I guess it makes sense to use nixpkgs-*, right? We probably want a set of packages that works on Darwin; aside from that Niv doesn't really care about nixos but does about nixpkgs, wdyt?

mweinelt commented 1 year ago

It really depends on the user and what they care about. NixOS users will want to use the nixos-* channels for its tested guarantee. Darwin users should rely on nixpkgs-*, since the nixos-* branches advances without consideration for darwin.