Howdy y’all non-developer trying to understand nix flakes.

  • rutrum@lm.paradisus.day
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    12 days ago

    Flakes are just a mechanism of pinning dependencies to fixed versions. When you run a flake it doesnt matter if you’re on 24.05, 24.11, or unstable, it’ll produce the exact same output.

    • Laser@feddit.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      11 days ago

      Yeah, they provide a reproducible environment for the modules.

      However, one should know that there is a catch which can make flakes believe differently on different machines when updating inputs. That is when you have inputs in your flake that point to your flakes registry. Especially the system entries can trip you up