nobodyinperson, to python
@nobodyinperson@fosstodon.org avatar

I have been struggling hard doing proper :python: development on :nixos: .

pip install'ed binary packages (numpy et. al) don't work (i.e. don't find system libraries like libz libstdc++ etc.), making scientific data analysis completely impossible. The workarounds (using the nixpkgs versions or setting LD_LIBRARY_PATH) are not viable.

With this flake template (the clue is preferWheels=true) it seems I can finally work properly:

https://gitlab.com/nobodyinperson/flakes/-/tree/main/poetry2nix

ktemkin, to NixOS
@ktemkin@chaos.social avatar

nix users: what bothers you most about nix (ux-wise or otherwise)? what seems the most mysterious to you?

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

Programming language hot take from someone that really only knows one language well and has been using Nix for like 3 weeks: programming language should not come with an internal package manager, their packages should get installed with a tool like

Mehrad, to NixOS
@Mehrad@fosstodon.org avatar

A question for and folks:

I want to start a R project and I want to keep everything about this project static and frozen in time. I know nix-shell is a thing, but:

  1. is there a better/smoother approach?

  2. is it possible to also have a service/daemon running in that nix-shell ? The editor I use (Rstudio) has desktop and server versions, and I would rather have the server version running on a beefy remote machine and I ssh into it.

Boosting is highly appreciated :)

ahelwer, to guix

My understanding of :guix: and :nixos: are that they explicitly pin the versions of absolutely everything & their transitive dependency graphs, all the way down to the compiler versions used to build a specific software commit. But how do they handle bootstrapping compilers?

Mehrad, to guix
@Mehrad@fosstodon.org avatar

Yesterday a good friend of mine helped me to understand and toy around with Gnu #Guix in a VM as I'm very hesitant to add anything to my daily driver machine. All things considered, I'm >90% convinced.

But here is a question for the friends and the community: What are the advantages of Nix over Guix (apart from number of packages)?

P.s: I'm going to have it on an Arch-based machine to add reproducibility to my projects. It will not handle my OS packages.

#askFedi #Nix #Linux #DataScience

schizanon, to linux
@schizanon@mas.to avatar

I don't understand what is for

Is it a distro? Or is it a orchestration tool?

At my last job our env was managed by it, but I was using it on and we also had to have , so I could honestly never figure out what it was there for.

publicvoit, to NixOS
@publicvoit@graz.social avatar

I Started With , , and https://www.karl-voit.at/2023/09/12/nix/ ❄️

My whole story about changing my distro from to NixOS and what I've learned so far.

If you would like to learn what Nix is and find out if this is something for you, you might be interested in my article.

jovian, to random French
@jovian@piaille.fr avatar

Ça a l'air cool , vous infirmez/confirmez ?

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

✨ “Making a dev shell with nix flakes” is now available for everyone!

https://fasterthanli.me/series/building-a-rust-service-with-nix/part-10

cjk, to random
@cjk@chaos.social avatar

So, what drama did I miss regarding ?

alper, to random
@alper@rls.social avatar

turns out to be not so great for exploratory programming. I'm in 3-4 different projects/languages on a normal day and its all continuous misery.

Today: Can't add mysql80 to a flake.nix and have it run easily (because which person developing a project would ever need a database server).

It's absurd how much of a non-problem this is with Homebrew.

beausimensen, to golang
@beausimensen@phpc.social avatar

Has anyone worked with , (with or without nix-shell), and GoLand?

My first passes at researching this doesn't show me many promising results. Some vscode discussion suggest launching vscode from the CLI after entering the shell.nix-enabled project directory, but not sure how I feel about that.

dedsyn4ps3, to NixOS
@dedsyn4ps3@fosstodon.org avatar

Finally took some time to bust out the @PINE64 #pinebookpro and have some fun! I'd planned on flashing #nixos onto it, but everything I'd book from the image on my NVMe, I'd go through the whole rebuild and switch but it continued failing to boot into the new build... 🤔

Next best option, fresh install an #archlinux based system with great development record for the PBP, #manjaro , and manage everything with #nix. Turns out option #2 is still pretty awesome! 😎🤘 :manjaro: :nixos: #linux

brodriguesco, to datascience
@brodriguesco@fosstodon.org avatar
alper, to random
@alper@rls.social avatar

So is when Haskell people make a package manager, a language, an OS and a build system all entangled with each other both physically and conceptually?

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

New X blog post: Reproducible data science with Nix, part 4 -- So long, {renv} and , and thanks for all the fish

https://www.brodrigues.co/blog/2023-08-12-nix_for_r_part4/

publicvoit, to NixOS
@publicvoit@graz.social avatar

5 Reasons You Should Avoid Using
https://www.youtube.com/watch?v=NEbzVKkjXUg

I like NixOS but from where I stand, those reasons are absolutely valid reasons NOT to use NixOS at all.

Where I stand: https://www.karl-voit.at/2023/09/12/nix/

publicvoit, to NixOS
@publicvoit@graz.social avatar

Very interesting article on #NixOS on https://changelog.com/posts/nixos-fatal-flaw

A few quotes:

NixOS has one fatal flaw, which is the usability of #Nix.

Docker does three things, Nix does two.

Nix solves the isolation of dependencies in a very good way, but it doesn’t solve running in namespaces, in cgroups, and security, and all of that. Nix doesn’t solve that.

Nix is a fantastic system if you can adopt it in an isolated, hermetic environment.

But it’s not for the masses. #Docker is for the masses.

kupac, to NixOS Hungarian
@kupac@functional.cafe avatar

Anybody using R's {reticulate} package in a Nix devshell? I noticed that if I have leftover python installs on my system, like .local/share/r-miniconda/ or .virualenv/r-reticulate, then the the nix reticulate is trying to use those -- not exactly the isolation I expected. When I delete them, everything works as it should. Is this a bug, or am I doing something wrong?

publicvoit, (edited ) to NixOS
@publicvoit@graz.social avatar

I'd like to publish my configuration (incl. + ) soon.

With it seems easy to look for configuration examples: https://github.com/search?q=lang%3Anix&type=repositories (1.2M code, 1.8k Repositories). 👍

However, doesn't seem to support a similar search method: not a single hit for each:
https://gitlab.com/search?search=xfconf
https://gitlab.com/search?search=homemanager
https://gitlab.com/search?search=nixos-configuration

Related: https://docs.gitlab.com/ee/user/search/

It looks like GitLab isn't the proper place for my config when I want to be found.

jakehamilton, to random
@jakehamilton@hachyderm.io avatar

For Flake users, how do you feel about a lib output that requires a system to use (eg. lib.x86_64-linux)?

beausimensen, to golang
@beausimensen@phpc.social avatar

Working with and and running into an issue I'm not sure how to search for an answer.

I've installed libusb1.dev. I'm importing gouvc (“github.com/ginuerzh/go-uvc”) in main.go. Running "go build main.go" results in:

./libuvc-binding.h:1276:10: fatal error: 'libusb.h' file not found  
#include <libusb.h>  
 ^~~~~~~~~~  

What am I missing to help go to find the libusb1 headers?

/nix/store/7yjy4s3za889nnz0pgip6yb3pkj7d1mg-libusb-1.0.26-dev/include/libusb-1.0/libusb.h

bitprophet, to NixOS
@bitprophet@social.coop avatar

/ flakes are so nice. Wishing I'd just dove straight into them at the start instead of spending a few years (very off and on, mind you) learning the “legacy" way of doing things.

The huge 'flakes: experimental!!!’ label once again scaring folks off when it oughtn’t 😩

jakehamilton, to random
@jakehamilton@hachyderm.io avatar

What goals should a #Nix fork have?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • Durango
  • slotface
  • rosin
  • thenastyranch
  • kavyap
  • modclub
  • anitta
  • cubers
  • tester
  • osvaldo12
  • tacticalgear
  • ethstaker
  • ngwrru68w68
  • khanakhh
  • Leos
  • normalnudes
  • cisconetworking
  • provamag3
  • megavids
  • lostlight
  • All magazines