maralorn,
maralorn, Switched all my machines to #nixos 24.05.
Basically no hickups. Thanks to all contributors for a great release!
nobodyinperson, Man, the longer I have :nixos: #NixOS and :manjaro: #Manjaro running in parallel, the more annoyed I am by the :archlinux: #ArchLinux way, e.g.:
· Python update ⇒ all python-based #AUR packages must be rebuilt. #pipx-installed packages also need reinstallation.
· separation between distro repos and AUR is anoying. 'yay -Syu' (or whatever) never really works in one go (be it some stupid sudo prompt later)
· so many AUR packages don't build reliably or at all.
...
AngryAnt, @adnan @nobodyinperson Certainly. And consequently the resulting images will be a lot more lean than what you would otherwise end up with.
Ex: https://nix.dev/tutorials/nixos/building-and-running-docker-images.html
AngryAnt, @hasnep @nobodyinperson When I moved to Linux I would maintain markdown files with notes & instructions on what I'd done and how to repeat. Nix let me skip the human step in executing my instructions.
Janik, Gotta love #lix
I encountered a small inconvenience bug earlier today, reported it to them and it took less then an hour for a cl with a fix being opened.
https://git.lix.systems/lix-project/lix/issues/340#issuecomment-3767
danielsiepmann, Danish
hexa, #NixOS 24.05 branch-off happened. Snuck in a small reformat of the python packages at the last minute.
https://github.com/NixOS/nixpkgs/pull/313628
Currently, evaluations are running, nixos-24.05-small has already completed eval and is building.
https://hydra.nixos.org/jobset/nixos/release-24.05-small
It will be mostly cached from nixos-unstable-small anyway, so its channel should be available within the next two hours.
hexa, @sandro The churn of individual commits doing reformatting of single packages frankly pisses me off. It consumes too much bandwidth and I wanted that to end.
There is never a good time to do it, but this was the best time to do it.
I have no regret for making this choice.
sandro, @hexa We should have waited another 6 months. There are still glaring issues around lib.optional/s wild formatting.
danielsiepmann, (edited ) Any Idea why I'm unable to update #NixOS due to "No space left on device" even if there are 23G available?
Edit: The issue was caused by number of inodes.
this path will be fetched (458.58 MiB download, 464.67 MiB unpacked): /nix/store/4mc1wf8b6jad08wlfqaw6zvv7007d51d-linux-firmware-20240513-zstd copying path '/nix/store/4mc1wf8b6jad08wlfqaw6zvv7007d51d-linux-firmware-20240513-zstd' from 'https://cache.nixos.org'... building '/nix/store/l4drcr95rzznb9n18rl95cjhzrvwi96q-system-path.drv'... error: mkdir /nix/store/swcchba29bqmm9mjfgs7flsmhw1fw4wg-system-path//share/locale/az: No space left on device at /nix/store/x65ah6kl9sqjwp4pqm0fn9kb20bc0974-builder.pl line 267. error: builder for '/nix/store/l4drcr95rzznb9n18rl95cjhzrvwi96q-system-path.drv' failed with exit code 28 error: 1 dependencies of derivation '/nix/store/6zlwarcc34qv5h2rfq2pj83h7zzcimm8-nixos-system-hikari-24.05pre628669.6c0b7a92c301.drv' failed to build nixpkgs > df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 395M 0 395M 0% /dev tmpfs 3.9G 16K 3.9G 1% /dev/shm tmpfs 2.0G 4.3M 2.0G 1% /run tmpfs 3.9G 1.1M 3.9G 1% /run/wrappers /dev/dm-0 102G 74G 23G 77% / /dev/sda1 511M 200M 312M 40% /boot/efi tmpfs 789M 44K 789M 1% /run/user/1000
pbsds, @danielsiepmann If not the inodes, you might want to clear out /tmp or even look at your boot partition. https://discourse.nixos.org/t/what-to-do-with-a-full-boot-partition/2049/11
danielsiepmann, @pbsds It actually was inodes. But thanks for your suggestion :)
leftpaddotpy, Wrote a post on how to do reasonable pinning for non-flake configs using a simple shell script, npins, and nixos-rebuild. I also talk about how tools like nixos-rebuild and nix-channel are skeletons in our closet that we need to actually replace and deprecate as a community, to bring people up to modern practices.
leftpaddotpy, @whitequark ok, sure, but that could also be done in a far more scrutible way by a CI job that updates the file and then the machine auto pulls its config or so.
whitequark, @leftpaddotpy this is true but the reason I use Nix is because it enables me to maintain more infrastructure with less work
so adding more work on top of that (the GHA treadmill or its equivalent for another platform) is just not appealing?
it's not like I would ever really want to roll out an old commit
jonoabroad, Help your elderly idiot #NixOS folks, how can I find the device file for one of my network cards?
Either I have this podman option reversed or everything hates me.
🤷♂️
spmatich, ifconfig -a
should show the host interfaces, although you might need to use
nmcli con show
Depending on your variant. Containers will usually use a bridge interface
jonoabroad, @spmatich yeah I am unsure if it is Nix, podman, some combination or 🤷♂️
I think it's working, but also, 😬
raito, I have been working on something, which is not totally ready.
Most of the deployment tools in the #NixOS ecosystem are tailored to... NixOS. NixOS can run in a bunch of places, but not easily on 256MB RAM devices and 32MB disk.
For that, you have plenty of options, one of them is #Liminix (https://www.liminix.org/).
Liminix is currently tailored to OpenWRT-class APs/routers and I worked on bringing support for the Zyxel NWA50AX (https://openwrt.org/inbox/toh/zyxel/nwa50ax). 1/???
doomy, anyone have a good resource for converting a binary to a #nixos service? I think i got pretty far with @readeck https://readeck.org/en/docs/deploy but i have no clue how to handle the /etc/ files it claims it needs and keep getting vague 203 errors.
davisrichard437, Okay I'll bite... which side should I be on for the #nixos drama?
AngryAnt, @davisrichard437 This post was an excellent lightning rod. Thank you for your service ;)
jakehamilton, The latest issue of #NixPkgsNews is out!
If you enjoy the weekly recaps and would like to support me continuing them (as well as getting some perks), you can now subscribe on Patreon!
Qyriad, instead of talking so much about what flakes are for, maybe we should talk more about what they do, because it's actually very little. flakes DO the following:
- manage a single, top-level lockfile
- force a specific entry point for a Nix expression
- change the CLI syntax you use
- turn on "pure eval" mode by default
- make you git track your files (for git repo flakes)
those are the actual things that flakes effect to Nix code
chrism, Report on NixOS Governance Discussions
https://chrismcdonough.substack.com/p/report-on-nixos-governance-discussions
yisraeldov, "there is no moral difference taking money from Anduril or from Microsoft. Microsoft has had multi-billion dollar Pentagon and other agency contracts for many years now, and the things they produce are used wherever the U.S. Government wants to use them, including as tools for war and border control."
100% this. #nixos is so embedded in #github that it is hard to take any complaints about other partners or sponsors seriously.
sandro, @yisraeldov @chrism NixOS is not deeply embedded into GitHub. Many CI checks are just executing shell code in the end which can be early run locally and be adopted and everything specific to GitHub would need to find a replacement, like the labeler.
The main problem is scalability. Running your own infrastructure on that level of size, complexity and availability is a major undertaking and eg. Gitea couldn't even handle the amount of forks.
bitprophet, ME: hm I should make one (1) change to my programmable keyboard.
30 MINUTES LATER: well, my random weird devicemapper issue went away after uninstalling/reinstalling docker and rebooting a few times, but now docker seems to require root, when it didn't before? wtf
Computers may have been a mistake. (Also, it's amazing how far my desire to tinker with my #NixOS setup has plummeted now that the community is splintering.)
bitprophet, Well, nothing another reboot didn't fix! What is this shit, Windows?
And this is a /headless/ Linux box, at that, so can't blame any of the huge pile of desktoppery bullshit one might otherwise blame, either.
webology, @bitprophet I was bulk updating a bunch of small servers last night, which included a few DO boxes.
I had one of those oh shit moments while I was upgrading the box to get Tailscale updated. Thankfully, everything was fine, but I thought I would lose access while the box took a minute to respond.
onepict, You have one more day before applications close for #SummerOfNix by @nixos_org and @NGIZero
If you're curious about Nix this is a paid opportunity.
onepict, More details on the call are here.
https://discourse.nixos.org/t/summer-of-nix-2024-call-for-participants/43249
onepict, My project @librecast benefited from last years #SummerOfNix when we applied through @review
We are still benefiting now as our package maintainers agreed to keep packaging us.
https://github.com/NixOS/nixpkgs/pull/310197
So if you are curious about how to package for #NixOs perhaps there is also a project you'd love to contribute to and have in Nix. This is your chance to learn and work with other folks.
squirrelroad, why is there https://lix.systems and https://aux.computer ?
Why not just merge them together ? #nix #nixos
sandro, @dwagenk @squirrelroad I don't see how replacing nix with different 3 letters in all terms would solve the naming quirk.
Also IMO that's not such a big issue. Most languages have a language and compiler/interpreter which is named the same.
sandro, @squirrelroad 🤷
Also aux seems to be just a community which primary goal is rebranding?
zperk13, Trying out #NixOS
I am getting very annoyed with the way it just imports everything
There's a reason we don't do "using namespace" or "use library::*" or "from library import *".
Ok I see a function here. Is it built in or imported? I have no idea.
Or if you somehow know it's not builtin, ok, but which of the 20 imported things is it from?
sandro, @zperk13 Even if it would have a FHS layout, things wouldn't always work out of the box and if you really need one, it can be emulated with a fhs env.
sandro, @zperk13 It doesn't. There a few keywords and everything else is either in builtins or in lib. lib is split into multiple sections but everything is also directly available under lib. and mostly those sections are not used and implementation details.
That people overuse with lib is slowly worked on to be removed.
xenya52, German Für mich persönlich ist #nixos schwer verständlich…
sandro, German @xenya52 Was genau?
Häufig ist man mit fd und rg gut beraten und findet sehr schnell was man sucht, weil es eben nicht über tausende kleine repos verteilt ist und man wissen muss in welchem man jetzt genau suchen muss.
nobodyinperson, Nice, I managed to package this little utility 'highlight-pointer' for :nixos: #NixOS, which is very helpful during screencasts.
It was very easy to do having already made an :archlinux: #ArchLinux PKGBUILD.
https://gitlab.com/nobodyinperson/nixconfig/-/blob/main/pkgs/highlight-pointer.nix?ref_type=heads
dedsyn4ps3, @nobodyinperson I've had the same experience recently after launching a new command line tool I created for GNOME desktops.
Having that hands-on experience with #archlinux PKGBUILDs definitely makes putting together a #nix #flake or standard derivation a lot more straightforward and easy to understand for sure! 🙌👌 :arch: :nixos:
jbzfn, :owi: Lix, a community run fork of CppNix and an implementation of the Nix language
➥ @lix_project「 Lix is developed by a diverse group of users – and accordingly is committed to providing a space that’s safe for users and developers typically underrepresented in technical projects. We take moderation seriously, and are committed to preventing bad actors from driving out marginalized groups 」
w96k, Nix original creator Eelco Dolstra has stepped down from Nixos foundation:
https://discourse.nixos.org/t/nixos-foundation-board-giving-power-to-the-community/44552
aeva, I don't actually have time today to work on any side projects, but I thought I'd run through the basic setup steps for MonoGame aaaand
./bin/Debug/net6.0/MyGame
bash: ./bin/Debug/net6.0/MyGame: cannot execute: required file not found... which required file ._. ???
I think this sort of thing means it tried to dynamically link something and failed. I run into this whenever I try to run loose builds of Linux games on #NixOS, but idk what to do about it.
aeva, I think I fixed everything that was reported missing by ldd, but it still cannot grasp ye flask :/ https://gist.github.com/Aeva/7b59e0e874e1f7e77bf384d250d4f50b
aeva,
baer, can someone help me with what i should expect from the
services.xserver.virtualScreen option.
From the source code I gather that it just appends"Virtual ${toString cfg.virtualScreen.x} ${toString cfg.virtualScreen.y}"}
to the monitor section
but what does that do? I don't know enough about x11 and the docs are not really helping me...
thanks
#xorg #nixos
sandro, @baer That's the x and y of the virtual screen.
The example will turn into"Virtual 2048 2048"
koalalorenzo, Today I learned: #nix-infect, to transform a vm from another distribution into #NixOS, mostly for cloud providers that don't offer this option! (Including #DigitalOcean and #hetzner). I am going to use it! :)