5 ms·
Eh, new defaults configurations do NOT merit a new distro. I've long believed this, and since I discovered NixOS it is now clear that there is away to avoid it.
by Ericson2314 11y ago
Eh, new defaults configurations do NOT merit a new distro. I've long believed this, and since I discovered NixOS it is now clear that there is away to avoid it.
- hyperhopper 11y agoHow do you use NixOS to manage your OS and applications and configurations? I thought it was for having reliable reproducable builds?
- zachrose 11y agoNix the package manager is for getting deep control and hard guarantees about your dependencies. NixOS uses Nix, but also gives you ways to 1) specify your system's configuration declaratively from the beginning* and 2) reliably get that configuration running on another machine without having to worry about, say, conflicts with existing dependencies. Or at least that's the theory. In practice I'm mostly still trying to get my mouse to work. :-P *As opposed to layering a declarative system over an imperative one, which I think is more or less what Chef, Docker, Ansible, et cetera are doing.
- Svenstaro 11y agoThat means I'll have to rewrite all my (Arch) packages for Nix in order for that to work, right? How does it deal with install scripts (inside upstream packages that you have no control over) that install stuff imperatively?
- gosub 11y agopackages are namespaced in a directory for each package/version, like this: /nix/store/b6gvzjyb2pg0kjfwrjmg1vfhh54ad73z-firefox-33.1/ if a package is "installed" in an environment (it could be global, user local or temporary), its files are sym-linked in the "original" position (e.g. /usr/bin/firefox etc etc)
- roblabla 11y agoSmall nitpick, they aren't symlinked to their original position, but instead to a "profile" (global for instance is in /run/current-system/sw, your local profile is $HOME/.nix-profile). This has several consequences. It means binaries distributed with the expectation of libraries being in their original position (e.g. /usr/lib/libc.so) don't work as is. It also means scripts depending on the presence of /usr/bin/bash are broken (which happen far too often). I love NixOS, but that is one of the biggest annoyance I have with the system.
- gosub 11y agoYes, you are right.
- Ericson2314 11y agoYeah but we're very good at patching shebangs, rpaths, etc.
- roblabla 11y agoWith packaged softwares, yeah it rocks and it's seamless. The problem comes from anything that's not packaged. Things that exist outside the nixos ecosystem. For instance, the Android SDK is a bit of pain in the neck to install via the nixpkgs : it's a mutable piece of software with pieces that auto-update themselves, made of lots of smaller packages that aren't bundled in the main package, etc... However, the binaries google provide doesn't run properly on nixos by default because of the non-standard install (has to set LD_PRELOAD so it can find the libc).
- Ericson2314 11y agoWell the Android SDK is like the worst-packaged thing ever :). I thought that its nixpkgs package was one of the greatest efforts to salvage the situation---the XSLT to automatically convert it's xml metadata to nix expressions is super impressive.
- Svenstaro 11y ago
- zachrose 11y agoAre you running cool/good defaults for NixOS? I'd be very interested in the specifics.
- _yy 11y agoYou don't even need NixOS for that. Just use Ansible or Puppet to manage your Arch Linux configuration.
- anthk 11y agoDitto but with GUIXSD.