News for hackers. Stuff that matters.

rokgarbas

Re:Nix and Containers: Why Not Both? on Thursday February 27, 2025 @11:38AM (#43195950)
- Method 1: doesn't really improve layer caching, but it provides a familiar way (via Dockerfile) to use Nix packages. As with any Dockerfile, the creator is in charge of creating layers and making sure those layers are as small (cleaning cache, ...).

- Method 2: Nix language is used to describe (in a declarative way) what the end image should look like. Layers are then calculated based on the dependency tree (or as Nix calls it, dependency closure). The algorithm that creates layers[1] makes sure that there is higher likelihood of cache hits without the user needing to worry about layers, but you can even roll-up your own algorithm that fits your project better.

- Method 3: Using Flox you would get sort of both. An easy way to configure the final docker image via toml configuration and using Method 2 under the hood.

There are other ways how to improve caching efficiency, but those are very use case specific (eg. big "builder" images) and would probably require a completely separate blog post.

[1] https://github.com/NixOS/nixpkgs/blob/63f0da03a3b2c323ea924b...

Re:The Flox Open Beta on Tuesday February 07, 2023 @02:36PM (#34698108)
Thank you.

Would you be willing to give us a challenge in a form of example environment that your data analysts/engineers would use with only a `flox pull`?

Re:NixOS 16.09 released on Monday October 03, 2016 @05:58PM (#12631712)
Re:Reflections on NixOS on Monday August 22, 2016 @04:08PM (#12339036)
i use nix to build my docker images and love it for that.

http://nixos.org/nixpkgs/manual/#sec-pkgs-dockerTools

Re:Purely Functional Linux with NixOS [video] on Tuesday August 09, 2016 @07:43AM (#12253868)
as nixos user i looked at habitat and the thing that i will never switch to habitat is that environments are not (build) reproducible. basically habitat is more like docker where it snapshots "successful" build and you use that input for further building.

what i loved about habitat is the supervisor part. i there is a way to use habitat's supervisor with nix. then you get best of both tools.

until then i'll just have to stick to python's supervisord.

Re:My Experience with Nix on OS X on Monday May 30, 2016 @05:18PM (#11803262)
the major reason for poor package support is low number of osx users (hydra - nix build farm - builds binaries also for osx).
Re:My Experience with Nix on OS X on Monday May 30, 2016 @05:16PM (#11803250)
a redesign of nix command line is on the way. so thins should get easier.
Re:Nix as OS X Package Manager on Friday May 27, 2016 @07:29AM (#11785263)
give pypi2nix a try and ping me on irc if it fails (nick: garbas)

https://github.com/garbas/pypi2nix

Re:Nix as OS X Package Manager on Friday May 27, 2016 @05:21AM (#11784824)
with nix you can now build docker images ... docs are in the manual http://nixos.org/nixpkgs/manual/#sec-pkgs-dockerTools

and it is actually rather cool since you don't rely on any docker command :)

Re:Ruby on Guix on Tuesday September 01, 2015 @04:15AM (#10151266)
i think guix/nix solution (can) goes beyond ruby platform and you can define dependencies on non ruby components: postresql, mysql, mongodb, ...
Re:Ruby on Guix on Tuesday September 01, 2015 @04:13AM (#10151263)
nix has tools to convert gemfile into nix expressions http://lists.science.uu.nl/pipermail/nix-dev/2015-January/01...
Re:Introducing GNU Guix on Saturday November 24, 2012 @10:24AM (#4825474)
with guix/nix you don't even care if they get adopted or not. you can use it in coexistence with any package manager.

very common scenario i come across few times a year: you get to work on an old CentOS/RedHat/Fedora box but you need to install latest package X which is only in next version of current distro. which would mean you need to upgrade or do a lot of manual work. with guix/nix you just install it without need to upgrade.

Re:Introducing GNU Guix on Saturday November 24, 2012 @10:16AM (#4825449)
nix (and potentially guix) is working on windows, at least from what i heard. probably there are some issues with existing packages since nobody really pays much attention to windows but if somebody cared this could improved a lot.
Re:Introducing GNU Guix on Friday November 23, 2012 @10:47AM (#4822540)
you can rollback on debian? you can install packages as user on RedHat? i moved away from it just because things like .deb and .rpm don't do the job all the way
Re:Introducing GNU Guix on Friday November 23, 2012 @07:28AM (#4821982)
havent try guix yet, but with nix you can simply do: nix-env -i vim or vimFull and it should install it.

look in documentation at http://nixos.org/nix/ on how to install nix and drop on irc.freenode.org#nixos if having problems

Re:Introducing GNU Guix on Friday November 23, 2012 @07:24AM (#4821971)
you have yet to give guix or nix a try. been using paludis in past and i can tell you that guix/nix is obvious evolution step :)