NixCon2023 Flake schemas

Поделиться
HTML-код
  • Опубликовано: 10 дек 2024

Комментарии • 3

  • @designernasser
    @designernasser Год назад +6

    Nix Con 🎉

  • @pinpox
    @pinpox Год назад +7

    +1 for flake schemas
    -1 for the passing in of args

  • @imatpot
    @imatpot Год назад +7

    i like the idea of the ability to define & pass args, but i do not really like the execution of it for larger configs, e.g. if you are developing software that requires secrets like api keys. typing endlessly long commands becomes tiresome and is prone to human error.
    maybe adding support for an args.nix file would be useful here, where all the options can be defined and passed using a single flag:
    $ nix build . --args-file args.nix
    potentially, Nix could even automatically check for args.nix just like it does for flake.nix, default.nix, shell.nix etc. This of course can only work for local flakes, evaluating remote flakes from e.g. GitHub would require the use of the cli flags explained here