templates
Flake templates (by NixOS)
nix-beam-flakes
Nix-based BEAM toolchain management (by shanesveller)
templates | nix-beam-flakes | |
---|---|---|
10 | 1 | |
365 | 36 | |
3.6% | - | |
6.0 | 9.2 | |
25 days ago | about 2 months ago | |
Nix | Nix | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
templates
Posts with mentions or reviews of templates.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-21.
-
What does the function `nixpkgs.lib.nixosSystem` do?
Unless you want to handwire something together or use another higher level function from some 3rd party library, your want to use this function. It is basically the entrypoint to a flake based nixos system configuration. See https://github.com/NixOS/templates/blob/master/simple-container/flake.nix for an example.
- Would it make sense to start a repo which contains some "standard" flake.nix files for various types of projects?
- Have you convinced anyone to use Nix or NixOS? Friends? Coworkers?
-
Why can't things "just work" on NixOS?
There are some templates on the official repository. https://github.com/NixOS/templates You can find others on github.
-
Big list of Flakes tutorials
Don’t forget about the official templates. Built right into the CLI https://github.com/NixOS/templates
-
Nix flake --impure segfaults
I am new to nix, and even newer when it comes to using flakes. I was trying out the following simple flake (based on this template), which just terminates with a segmentation fault whenever I use --impure flag (e.g. nix develop --impure)
-
Help me understand how to install something that isn't in the official nixpkgs
You would probably want to use flakes. There is NixOS/templates repo with flake templates. Take a look at go-hello one.
-
I created a super simple flake.nix template so you can finally use python painlessly in your nix projects. Just copy a few lines over into your flake.nix and you can use all of PyPi :)
You should consider adding this as a template to https://github.com/nixos/templates.
- Have you heard of NixOS/template?
nix-beam-flakes
Posts with mentions or reviews of nix-beam-flakes.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-25.
-
Would it make sense to start a repo which contains some "standard" flake.nix files for various types of projects?
I left it vague because I didn't want to seem self-promotional. Unmerged documentation branch is the best starting place here: README, docs folder of that branch, example from develop. I daily drive it at work, and on a personal project for about 8 months. Doesn't do well for monorepos with disparate BEAM versions yet, but there are escape hatches and usage-as-library too. For the typical Phoenix project with a few extra system deps it's a pretty good onramp. perSystem.beamWorkspace.devShell.extraPackages is how you add arbitrary buildInputs like your VIPS stuff and .extraArgs for additional arguments to mkShell, such as your non-sensitive envvars. There's a page for future goals too. Publishing the rendered docs as a static site is in my TODOs, it's mostly glue left.
What are some alternatives?
When comparing templates and nix-beam-flakes you can also consider the following projects:
nix-templates - Nix Flake templates for various languages
treefmt-nix - treefmt nix configuration
nix-flake-templates
flake-parts - ❄️ Simplify Nix Flakes with the module system
pypi-deps-db - Dependency DB for python packages on pypi
fenix - Rust toolchains and rust-analyzer nightly for Nix [maintainer=@figsoda]
mach-nix-template - Simple and straight-forward way to create python environments using PyPi in nix
templates - Nix flake templates managed by the community [maintainer=@IogaMaster]
nix-template - Make creating nix expressions easy
rust-overlay - Pure and reproducible nix overlay of binary distributed rust toolchains
nixpkgs - Nix Packages collection & NixOS
devshell - Per project developer environments
templates vs nix-templates
nix-beam-flakes vs treefmt-nix
templates vs nix-flake-templates
nix-beam-flakes vs flake-parts
templates vs pypi-deps-db
nix-beam-flakes vs fenix
templates vs mach-nix-template
nix-beam-flakes vs templates
templates vs nix-template
nix-beam-flakes vs rust-overlay
templates vs nixpkgs
nix-beam-flakes vs devshell