5 ms·
NixOS 16.03 Released
- jxy 11y agoI've been using nixpkgs for almost a year on an age-old linux distro controlled by my company. It replaced gentoo-prefix, which was error prone and hated RH based distros. Nixpkgs works really well and the separated environment makes maintenance easier to control. It occasionally breaks upgrade of some packages, but it never affects the working environment. It seems with 16.03 they are bold enough to go gcc 5.3. It would be interesting to test out my toolchains against the gcc 5 series, but I still don't see gcc 5 being the default on the Nixpkgs. I guess I'll wait a bit longer to waste my time on gcc 5.
- rdtsc 11y agoI was reading more about it and found 2 Erlang Factory videos where authors talk about deploying and using NixOS in production: Susan Potter - "From Zero To Production" : https://www.youtube.com/watch?v=5vVZzu6HMaQ https://www.youtube.com/watch?v=5vVZzu6HMaQ Eric Merritt -"Managing And Releasing Erlang Systems In The Cloud With A Fully Declarative Package Manager" : https://www.youtube.com/watch?v=xRSFJH3Lw6I https://www.youtube.com/watch?v=xRSFJH3Lw6I
- nextos 11y agoI really like the concepts brought by Nix. Guix is also a nice derivative, which uses Scheme as a DSL to describe packages and its own Scheme-implemented init system. Explicit package definitions bring 2 great advantages. First, one can easily modify them programatically (to e.g. enable or disable options) and build the resulting custom package from source. Like Gentoo on steroids. Second, one can build packages from source and compare them bitwise with binaries offered by mirrors. This is incredibly important to avoid malicious attacks. See guix challenge command. I dislike a bit that some Nix packages are very non-minimal, built with every possible optional dependency baked in. I consider this a security threat. Not so long ago, Firefox came with Flash by default. Getting seemingly innocent CLI packages like Mutt ended up pulling a lot of stuff like Python I don't need via GPG. I would love to have something more minimal, like what Arch gives.
- Ericson2314 11y agoWe agree that package configuration isn't very discoverable — for users or our tools. Once we fix that it could be possible to add a blanket config to default to a minimal cfg instead. I'd guess the default configurations tend to err on the side of completeness to get the most bang for buck from the cached builds.
- nextos 11y agoYep. My litmus test here would be, can I set up a whole minimal desktop (xmonad, emacs, firefox, mutt, git, rsync, openssh, gnupg...) without pulling any extraneous dependencies? This is possible on most major Linux distributions, but not in NixOS. Otherwise a fantastic piece of work. I wish it plenty of success. It's full of simple and great ideas.
- Ericson2314 11y agoWell, with enough manual tweaking it ought to be. You may also be interested in https://github.com/NixOS/nixpkgs/pull/7701 https://github.com/NixOS/nixpkgs/pull/7701 which cuts down in unintentional dependencies.
- agumonkey 11y agoI had issues with previous versions due to pre 4 kernel drivers. I'm tempted to try it again.
- devplusops 11y agoWhenever I look seriously at Nix/NixOS, I also find myself looking at Guix. What makes them different / how can I choose between them? (or should I consider using them both? where is each better?)
- robto 11y agoDisclaimer: I'm a NixOS user who is interested in switching to Guix but have not actually tried it yet. Both package managers (Nix and Guix) and the distributions (NixOS and GuixSD) are very young, so expect some missing packages and some rough edges. That said, Guix & co are newer than Nix & co, so expect more missing packages and roughness with Guix. Also, GuixSD being a GNU project, you'll have a harder time finding proprietary stuff packaged up. Guix is entirely scripted in Guile Scheme, which is a strong point in my mind. And from what I understand, you can drive your whole operating system from emacs, which appeals to me as someone who lives in and loves emacs. It also has a strong emphasis on user Freedom. But you can use both! This is part of what's so cool about functional systems. I personally started with Nix on Ubuntu, graduated NixOS, and am now starting to look into Guix. And eventually, GuixSD.
- cwp 11y agoGuix uses Guile instead of the nix expression language for defining packages. Honestly, I don't understand that choice. The main issue with nix is that is a lazy functional language and the learning curve for that is a barrier to adoption. But... scheme is not a solution to that problem. It looks to me like GuixSD the successor to the Hurd as the favoured GNU OS. It's the official GNU distribution of Linux and it's choices are more political/ideological than practical. So you're excited to use an OS that's FSF-endorsed from top to bottom, choose Guix. If you're more interested in realizing the benefits of functional package management, choose Nix. So, if you're more interested in functional package management
- Johnny_Brahms 11y agoFrom what I understand they will make a DSL when the time comes and they have realised what they need. Scheme is a really nice language, and the barrier should be almost non-existant if you know how to balance parens.
- 0xcde4c3db 11y agoDoes NixOS have a good security update story yet? Last time I looked, security updates in widely-used libraries like glibc could get bogged down in huge rebuilds because of the way dependencies are specified/resolved. There was some kind of hack to bypass this, but I think it required manual config changes for each update. The wiki seems to have evaporated, so I'm not sure what's current.
- tvon 11y agoThis looks relevant: https://github.com/NixOS/nixpkgs/pull/10851 https://github.com/NixOS/nixpkgs/pull/10851
- renox 11y agoI'd like to like Nix but I wasn't able to solve myself a simple issue (IMHO the docs aren't very good) and couldn't find help either ( https://www.reddit.com/r/NixOS/comments/4attyh/a_newbie_question_configure_nix_to_recompile_gcc/ https://www.reddit.com/r/NixOS/comments/4attyh/a_newbie_ques... ) so..
- mjhoy 11y agoThe subreddit is pretty quiet. Did you try asking on #nixos? People are pretty helpful there.
- renox 11y agoI tried once, but didn't get any reply (I really dislike IRC, it's like trying to be heard in a crowd) I'll try again..
- nuopnu 11y agoI can't provide you a full solution, but here are the hints: - gcc5 definition: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L4168 https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/... - Old cc wrapper with a custom libc option https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L5188 https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/... - libc in the GCC package itself: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/gcc/5/default.nix#L360 https://github.com/NixOS/nixpkgs/blob/master/pkgs/developmen... The whole system is very modular and customizable. But yeah, very hackish and undocumented.