nix
NixOS-docker
nix | NixOS-docker | |
---|---|---|
2 | 5 | |
12 | 151 | |
- | - | |
7.9 | 3.3 | |
3 days ago | over 2 years ago | |
Nix | Dockerfile | |
- | GNU Lesser General Public License v3.0 only |
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.
nix
-
NixOS 21.05 Released
I was able to make the switch over cold turkey after ~9 years of ArchLinux.
By sheer happenstance, I blogged earlier this week about one particular killer feature that doesn't get enough air time: https://news.ycombinator.com/item?id=27344677
My not-flake-yet configuration can be found at https://github.com/rraval/nix
-
Nix solves the package manager ejection problem
> How do NixOS users typically manage software that is not a Nix package
By writing a Nix package for it (I don't mean for this to sound flippant, tone is a bit hard to convey over text).
For example I have this alpha quality rust binary that I'm developing but I also want a stable version installed at the OS level. I write a Nix package and simply compose it into my overall NixOS configuration alongside the more official Nixpkgs: https://github.com/rraval/nix/blob/master/git-nomad.nix
> like a source code tarball where you would traditionally run configure && make && make install?
Nix has a bunch of defaults that make a conventional package like this straightforward.
Here's a package for a vanilla C binary + library that does the `autoreconf && ./configure && make && make install` dance: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/secu...
It's almost a little misleading because the actual steps are largely inherited from the defaults, you can read more about `stdenv.mkDerivation` here: https://nixos.org/guides/nix-pills/fundamentals-of-stdenv.ht...
NixOS-docker
-
Throwing some Nix in the Mix
Luckily, I did not have to start from scratch as Nix serves their own docker image. I mounted one of my directories and was able to drop into a Nix shell with my configuration file.
-
NixOS 21.05 Released
There is one: https://github.com/NixOS/docker
But it's more of a Nix docker image than a NixOS one, because half of the things that NixOS gives you don't really make much sense in a docker image (systemd in a container?).
-
Self hosted IRL achievements list?
I only know of the nix package manager. https://hub.docker.com/r/nixos/nix
-
What tools do people use for DevOps pipelines / continuous delivery?
Ability to run buildkite agents inside a kubernetes cluster on preemble instances without need to modify agent’s Dockerfile every time new dependency comes up - was one of major reasons to learn Nix. I’m just using nixos/docker image as a base, install buildkite-agent and some base stuff like bash via nix-env inside Dickerfile, everything else lays in flake.nix of every project my dockerized nixified buildkite agent run.
What are some alternatives?
napalm - Support for building npm packages in Nix and lightweight npm registry [maintainer @jtojnar]
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
nix - Nix, the purely functional package manager
nixGL - A wrapper tool for nix OpenGL application [maintainer=@guibou]
nix-darwin - nix modules for darwin
runix
nixos-generators - Collection of image builders [maintainer=@Lassulus]
spack - A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
nix-bundle - Bundle Nix derivations to run anywhere!
flake-utils-plus - Use Nix flakes without any fluff.