News for hackers. Stuff that matters.
Re:Persistent packages on Steam Deck using Nix by Cyph0n on Sunday February 09, 2025 @02:00PM (#42992735)
To be honest, the naming is a bit confusing. Here is my understanding:

- Nix: build system and package manager (available on Linux and macOS)

- Nix: language used to define how to build packages

- nixpkgs: Nix package monorepo

- NixOS: Linux distro that is fully managed using Nix (language), has Nix (package manager) built-in, and is defined as part of nixpkgs

Re:Persistent packages on Steam Deck using Nix by soraminazuki on Sunday February 09, 2025 @02:53PM (#42993241)
The language is also commonly referred to as Nix expressions or the Nix language.
Re:Persistent packages on Steam Deck using Nix by squiggleblaz on Sunday February 09, 2025 @07:30PM (#42995618)
Honestly I think you need to divide "Nix" up into two:[1] a language interpreter and the build system/sandbox. First nix interprets the expressions. It does that in your local context - so that, if it's configured to, it might read your .aws/credentials file to get access to resources stored in your S3 bucket. Once it's established what it needs to build, then the build system takes over and sets up a sandbox and runs bash scripts and other commands to produce output. I had conflated the two for some time and it caused my a variety of confusions that are resolved by observing the distinction.

(Also, I tend to think it's better to view NixOS as a tool for producing a linux distribution, which in many cases just happens to have an installbase of 1 - but that's not necessarily the case, and you could build your images with NixOS and deploy a dozen of them to aws.)

[1]: this was meant to be a joke, but it occurs to me that a person might think I missed that they had divided "Nix" up into two, the buildsystem and the language. But a language is not a command and doesn't do anything, so it can't possibly be an interpreter as well - and there could be and to some degree is multiple nix interpreters. So it is the first of the divisions of Nix that I sliced in two, and you end up with three Nixes: the buildsystem/sandbox; the main language interpreter; and the language.

Re:Persistent packages on Steam Deck using Nix by viraptor on Sunday February 09, 2025 @08:50PM (#42996120)
Re:Persistent packages on Steam Deck using Nix by bqmjjx0kac on Sunday February 09, 2025 @09:36PM (#42996346)
Which itself is derived from the logic-defying diagram of the holy trinity: https://en.wikipedia.org/wiki/Trinity
Re:Persistent packages on Steam Deck using Nix by sangnoir on Sunday February 09, 2025 @11:54PM (#42997070)
How is it logic defying? It seems straightforward to apply on any compositional entity: I could make one with "Apple Executive", "Tim", "Phill", and "Eddy"
Re:Persistent packages on Steam Deck using Nix by krab on Monday February 10, 2025 @12:13AM (#42997159)
I guess because of the assertion that "there is only one God".
Re:Persistent packages on Steam Deck using Nix by ffsm8 on Monday February 10, 2025 @01:27AM (#42997494)
While that breaks the Apple executive example, it's still just as easy to explain from a programming perspective: each of the sides could be a trait/interface which is implemented/part of the same entity/Singleton
Re:Persistent packages on Steam Deck using Nix by viraptor on Monday February 10, 2025 @02:45AM (#42997833)
Yes, but real world entities don't stop being a thing just because you refer to their one specific trait. The god example only works if you assume it works. That's why it's not logical.

Anyway, traits are "is a" descriptive thing, not a referential equality "is". The trinity relations are not "is a" to begin with, or we'd be having many gods and Christian priests are not into that.

Re:Persistent packages on Steam Deck using Nix by graemep on Monday February 10, 2025 @07:08AM (#42999362)
Given it is a discussion of an entity that is already defined by properties not shared by any other real world entity its seems not just logical, but reasonably, to assume that it differs from them in other ways too.

I tend to agree traits is not an accurate description, but it is a reasonable analogy.

> The trinity relations are not "is a" to begin with, or we'd be having many gods and Christian priests are not into that.

Sayings "priests" seems and off choice of wording. Why not just Christians, or even "Christian theologians"?

Re:Persistent packages on Steam Deck using Nix by viraptor on Monday February 10, 2025 @02:14PM (#43004018)
Just because someone comes up with one illogical idea, it isn't reasonable to say it likely "differs in other ways too". Instead maybe establish one unusual thing to be verifiably true before stacking on more.

> Sayings "priests" seems and off choice of wording.

Meh. Priests set the norm for the regional communities.

Re:Persistent packages on Steam Deck using Nix by bdhcuidbebe on Monday February 10, 2025 @01:13AM (#42997428)
Maybe because the ”is not” clauses?
Re:Persistent packages on Steam Deck using Nix by sangnoir on Monday February 10, 2025 @02:01AM (#42997630)
Tim is not Phil...
Re:Persistent packages on Steam Deck using Nix by bqmjjx0kac on Monday February 10, 2025 @08:55AM (#43000327)
Tim is Eddy and Eddy is Phil, but Tim is not Phil?
Re:Persistent packages on Steam Deck using Nix by bqmjjx0kac on Monday February 10, 2025 @02:11AM (#42997682)
Well, I suppose it depends on what your definition of "is" is. Mine typically exhibits the transitive property ;P