!RRerllqmbATpmbJgCn:nixos.org

Nix / NixOS

3853 Members
Nix/NixOS user help channel | Latest NixOS: 24.05 (Uakari) | Ask your question here or on https://discourse.nixos.org | All NixOS rooms are moderated! Ask for help in #moderation:nixos.org660 Servers

Load older messages


SenderMessageTime
21 Oct 2024
@johnrizzo1:matrix.orgJohn Rizzo
In reply to @schuelermine:matrix.org
Has the Determinate Systems blog post from an hour ago been discussed here already?
Just read it. What are your thoughts?
21:23:43
@schuelermine:matrix.orgschuelermine
In reply to @johnrizzo1:matrix.org
Just read it. What are your thoughts?
I think it could be a good/acceptable idea, but I don’t have high hopes
21:24:21
@johnrizzo1:matrix.orgJohn RizzoFrom a technical point of view, what problem do you think they are solving that isn't being solved by nixos. I see a lot of things like AWS IaM integration, semtantic versioning, etc.21:27:49
@sliedes:hacklab.fiSami Liedes

Hey. I'm thinking about what would be the best way (best practices) to maintain a set of custom nixpkgs.lib style functions for local use. I guess there's a few considerations:

  • Flake or something else. Or rather, a different repository from the code using it or not. I assume I might use it in multiple repositories eventually, but maybe initially it would be easiest to not juggle multiple repositories that develop and use it.

  • How to get it to code using it. Should I put it in an overlay as a package? Do we have something like a reserved for private use namespace, guaranteed to not be used for anything except by local use? :) Would be annoying if I come up with a random string for local use and then someone publishes a package with the same name!

Actually, what's the attrset that lib.nixosSystem passes to the modules? I think in that I have inputs for my flake inputs (specialArgs = { inputs = ...; }). Does that attrset also get passed to the nixpkg-style packages? No, I think that's pkgs, since I've seen functions that take an attrset with package names?

21:30:02
@sliedes:hacklab.fiSami LiedesOr do the specialArgs get injected to the nixpkgs attrset...21:31:04
@sr.estegosaurio:matrix.orgSr. EstegosaurioI'm trying to make my system use nouveau to benchmark stuff but I think now it's only running off the iGPU.21:33:40
@sliedes:hacklab.fiSami LiedesOr it could be an overlay. Overlay is strictly for packages (only)? Not that it cannot be a package, but then it needs to live in the package namespace.21:34:01
@kfears:matrix.orgKFears (tragedy arc)
In reply to @sliedes:hacklab.fi

Hey. I'm thinking about what would be the best way (best practices) to maintain a set of custom nixpkgs.lib style functions for local use. I guess there's a few considerations:

  • Flake or something else. Or rather, a different repository from the code using it or not. I assume I might use it in multiple repositories eventually, but maybe initially it would be easiest to not juggle multiple repositories that develop and use it.

  • How to get it to code using it. Should I put it in an overlay as a package? Do we have something like a reserved for private use namespace, guaranteed to not be used for anything except by local use? :) Would be annoying if I come up with a random string for local use and then someone publishes a package with the same name!

Actually, what's the attrset that lib.nixosSystem passes to the modules? I think in that I have inputs for my flake inputs (specialArgs = { inputs = ...; }). Does that attrset also get passed to the nixpkg-style packages? No, I think that's pkgs, since I've seen functions that take an attrset with package names?

For libraries, I've been using just few local files with stuff I need
21:34:16
@sr.estegosaurio:matrix.orgSr. Estegosaurio
In reply to @sr.estegosaurio:matrix.org
I'm trying to make my system use nouveau to benchmark stuff but I think now it's only running off the iGPU.
I've disabled all nvidia related stuff on my config and thus I don't have the propietary drivers loaded.
21:34:21
@kfears:matrix.orgKFears (tragedy arc) lib NixOS option might be useful, but I'm not 100% sure 21:34:29
@sr.estegosaurio:matrix.orgSr. Estegosaurio
In reply to @sr.estegosaurio:matrix.org
I've disabled all nvidia related stuff on my config and thus I don't have the propietary drivers loaded.
And according to modprobe nouveau is loaded in the kernel.
21:34:59
@kfears:matrix.orgKFears (tragedy arc)Trying to hook up flakes into it is probably a lot of pain21:35:08
@emilazy:matrix.orgemily
In reply to @sliedes:hacklab.fi

Hey. I'm thinking about what would be the best way (best practices) to maintain a set of custom nixpkgs.lib style functions for local use. I guess there's a few considerations:

  • Flake or something else. Or rather, a different repository from the code using it or not. I assume I might use it in multiple repositories eventually, but maybe initially it would be easiest to not juggle multiple repositories that develop and use it.

  • How to get it to code using it. Should I put it in an overlay as a package? Do we have something like a reserved for private use namespace, guaranteed to not be used for anything except by local use? :) Would be annoying if I come up with a random string for local use and then someone publishes a package with the same name!

Actually, what's the attrset that lib.nixosSystem passes to the modules? I think in that I have inputs for my flake inputs (specialArgs = { inputs = ...; }). Does that attrset also get passed to the nixpkg-style packages? No, I think that's pkgs, since I've seen functions that take an attrset with package names?

an overlay is a reasonable idea if you want it to trickle down into packages
21:35:53
@emilazy:matrix.orgemilyfor naming, perhaps consider something reverse DNS-based21:36:00
@emilazy:matrix.orgemilytimes emily has recommended rDNS namespacing today: 221:36:10
@emilazy:matrix.orgemily under no circumstances do I recommend overlaying lib itself 21:36:26
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @sr.estegosaurio:matrix.org
And according to modprobe nouveau is loaded in the kernel.

If youre on xorg then xrandr --listproviders is good

21:36:30
@sliedes:hacklab.fiSami Liedes
In reply to @emilazy:matrix.org
for naming, perhaps consider something reverse DNS-based
Yeah, I thought about that. There's also the tension of wanting it to be short and wanting it to be unique :D
21:36:49
@sr.estegosaurio:matrix.orgSr. Estegosaurio
In reply to @sr.estegosaurio:matrix.org
And according to modprobe nouveau is loaded in the kernel.
How do I check if which GPU and drivers a process is using?
21:36:57
@kfears:matrix.orgKFears (tragedy arc)
In reply to @schuelermine:matrix.org
Has the Determinate Systems blog post from an hour ago been discussed here already?
I have very strong (and very negative) opinions about it, but I'm interested in what other people have to say about it
21:37:02
@sr.estegosaurio:matrix.orgSr. Estegosaurio
In reply to @magic_rb:matrix.redalder.org

If youre on xorg then xrandr --listproviders is good

Not on Xorg :/
21:37:07
@emilazy:matrix.orgemily
In reply to @sliedes:hacklab.fi
Yeah, I thought about that. There's also the tension of wanting it to be short and wanting it to be unique :D
let inherit (yourverboselib) a b c d; in is an import statement
21:37:18
@sliedes:hacklab.fiSami LiedesTrue.21:37:48
@sr.estegosaurio:matrix.orgSr. Estegosaurio
In reply to @sr.estegosaurio:matrix.org
Not on Xorg :/
Now inxi -Gx (random tool I've found on the arch forums) displays both my dGPU and nouveau.
21:37:48
@schuelermine:matrix.orgschuelermine
In reply to @johnrizzo1:matrix.org
From a technical point of view, what problem do you think they are solving that isn't being solved by nixos. I see a lot of things like AWS IaM integration, semtantic versioning, etc.

I should’ve phrased myself better. I think it could be benign. Obviously all of the functionality they offer could be offered by the Nix open source community with some work, and them positioning themselves as Nix, but more user-friendly, is troubling since it creates a hostile relationship as Nix itself also wants to become user-friendly.

21:39:19
@schuelermine:matrix.orgschuelermine
In reply to @johnrizzo1:matrix.org
From a technical point of view, what problem do you think they are solving that isn't being solved by nixos. I see a lot of things like AWS IaM integration, semtantic versioning, etc.
*

I should’ve phrased myself better. I think it could be benign. Obviously all of the functionality they offer could be offered by the Nix open source community with some work, and them positioning themselves as Nix, but more user-friendly, is troubling since it creates a hostile relationship as Nix itself also wants to become more user-friendly.

21:40:21
@kfears:matrix.orgKFears (tragedy arc)Just FYI: the top-1 committer to CppNix in the recent months is Eelco Dolstra, and he's also Co-Founder of DetSys, and a very long-time maintainer of CppNix (he's also the creator of Nix the concept)21:41:35
@judson:matrix.orgJudsonHrm. The devDependencies of this app aren't available in mkYarnPackage during build...21:41:50
@judson:matrix.orgJudsonThe yarn.nix includes them...21:42:05
@kfears:matrix.orgKFears (tragedy arc)
In reply to @kfears:matrix.org
Just FYI: the top-1 committer to CppNix in the recent months is Eelco Dolstra, and he's also Co-Founder of DetSys, and a very long-time maintainer of CppNix (he's also the creator of Nix the concept)
So it would probably be more accurate to say that there's inherent conflict between CppNix and DetSys thing, because the same person is key to both
21:45:37

Show newer messages


Back to Room ListRoom Version: 10