HNHacker News
TopNewBestAskShowJobs

SuperSandro2000

737 karma · joined August 20, 2016

submissionscomments
SuperSandro2000··on My First Impressions of Nix
Let me interrupt that in the middle and undo some steps by hand and it will probably fall on its nose. Nix can handle interruption in the middle of all build steps and can cleanly recover from them.
SuperSandro2000··on My First Impressions of Nix
well, yes true, but ansible sucks and especially for small and chaotic projects where people just change things on the machines without reflecting it in ansible it is a nightmare
SuperSandro2000··on My First Impressions of Nix
I don't know of anything before nix comparable to it but I happily learn something new.
SuperSandro2000··on My First Impressions of Nix
You can just copy a build nixos system to a server and activate it there.
SuperSandro2000··on My First Impressions of Nix
> Which file? And where in the file do I add those lines?

/etc/nixos/configuration.nix if you haven't structured your config differently.

> And where in the file do I add those lines?

Consult `man configuration.nix` or search.nixos.org

SuperSandro2000··on My First Impressions of Nix
> Nixpkg is a package manager

*Nix

SuperSandro2000··on My First Impressions of Nix
> Is it a package manager?

Yes

> A build system?

No

> An operating system?

Thats NixOS

> A container platform?

nixpkgs has functions to build them

> A sandbox?

No

> An automation tool?

Yes and no

> Which widely used, existing software tools is it analogous to?

Arch Linux plus Haskell plus Ansible plus better

SuperSandro2000··on My First Impressions of Nix
> Is it fair to summize that python applications with python dependencies do not really work well as nix packages and shouldn't be used?

No, applications that are properly maintained work as they should and this can be ensured with tests and e2e tests.

SuperSandro2000··on My First Impressions of Nix
> Elsewhere in this thread someone mentioned that there isn't a strict single version policy in nixpkgs, so this can probably be easily fixed. I'd suggest filing a bug in Nixpkgs.

There isn't one but we are not collecting multiple package versions for no reason and since python itself cannot well handle multiple versions of packages they are only allowed outside of pythonPackages where all end user applications should live.

SuperSandro2000··on My First Impressions of Nix
> I just use imperative python-venv + pip install on those.

The whole point of NixOS is to manage this and to get rid of those manual steps that are error prone.

SuperSandro2000··on My First Impressions of Nix
> That's why some people say that managing dependencies in Python is difficult and move to statically compiled languages.

Yes, completely agreeing with that.

SuperSandro2000··on My First Impressions of Nix
> packaging for Debian.

Not really, nix is way more flexible and more up to date and nix also often runs tests and different pythons cannot interfere with each other that easily. On a high level things are similar but the details are wastly different.

> Or you could create a hermetic environment, where an app gets an isolated copy of dependencies, specific just to the single app, a situation similar to using virtual env.

That could also be done with nix but is often not because upstream pin quality is often lacking.

SuperSandro2000··on My First Impressions of Nix
They don't need to use the same version of the Django package but Python dependency pins are often either way to tight and can easily be expanded or outright missing, so they often get ignored.
SuperSandro2000··on How the brain processes German and Arabic
German is just saving some whitespace
SuperSandro2000··on Microsoft Freezes Salaries for 2023
So real wage decrease, CEO probably gets a few Million increase anyway
SuperSandro2000··on YouTube tests blocking videos unless you disable ad blockers
There will be ways to circumvent this and if I need to write one myself.
SuperSandro2000··on We need better support for SSH host certificates
Part of the problem is also that ssh has host key rotation support but openssh client has it turned off by default
SuperSandro2000··on We need better support for SSH host certificates
Not that I know of
SuperSandro2000··on When root on ZFS breaks on Arch Linux
And even if you don't use that, the build just fails early without consequences.
SuperSandro2000··on When root on ZFS breaks on Arch Linux
This can't happen with NixOS.
SuperSandro2000··on Judge decides against Internet Archive
If you are for the people, you are always against the publishers.
SuperSandro2000··on Scaling Rust Builds with Bazel
NixOS maintainer here and I hate bazel through and through. I don't know any other build system that is more anti distro them bazel.
SuperSandro2000··on So you've installed `fzf` – now what?
Only a 404, but still living fzf since forever.
SuperSandro2000··on Even the Pylint codebase uses Ruff
See https://github.com/charliermarsh/ruff/issues/970 for a comparison between pylint and ruff
SuperSandro2000··on The Determinate Nix Installer
Blame apple for most of this.:)

On Linux there are far few steps: - delete /nix - delete build users (could be removed in the future) - delete she'll script files in /etc/profile - delete systemd nix-daemon service - delete symlinks in user directory

SuperSandro2000··on The Determinate Nix Installer
One if the bigger issues right now are mass rebuilds and content agreed derivations hopefully address that at least partly. Sadly there is not much work happening on them lately.
SuperSandro2000··on The Determinate Nix Installer
Nix should use similar values already by default but if you are regularly build heavy builds those settings are not good enough and need tweaking.
SuperSandro2000··on The Determinate Nix Installer
You don't need a nix installer inside of nixos.
SuperSandro2000··on Linux-factory: A framework used to create custom Linux Debian operating systems
or use NixOS which has this built in as a first class citizen.
SuperSandro2000··on Linux-factory: A framework used to create custom Linux Debian operating systems
Why not use a distro that has the literally built in?
← PreviousPage 4 of 10Next →