NixOS

maralorn,
@maralorn@chaos.social avatar

Something extremly awesome happened. After switching to -24.05 my system just feels … more snappy?

I don’t know exactly why. I think it might be the update to 0.3.0.

\cc @ifreund

athas,
@athas@freeradical.zone avatar

@maralorn @ifreund do you run the release branches of NixOS? I think I did so initially, but switched to master because releases didn't work well for me, for reasons I no longer remember. Reconstructing potential issues, is Nixpkgs committed to backporting security fixes?

AngryAnt,
@AngryAnt@mastodon.gamedev.place avatar

@athas @maralorn @ifreund Security fixes will hit the active branches, yes.

Using master is very unreccomended as you're running without any test- or cache coverage.

maralorn,
@maralorn@chaos.social avatar

Switched all my machines to 24.05.

Basically no hickups. Thanks to all contributors for a great release!

hexa,
@hexa@chaos.social avatar

@mangoiv Yeah, I think release managers can bypass branch protection. @maralorn

mangoiv,
@mangoiv@functional.cafe avatar
nobodyinperson,
@nobodyinperson@fosstodon.org avatar

Man, the longer I have :nixos: and :manjaro: running in parallel, the more annoyed I am by the :archlinux: way, e.g.:

· Python update ⇒ all python-based packages must be rebuilt. -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,
@AngryAnt@mastodon.gamedev.place avatar

@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,
@AngryAnt@mastodon.gamedev.place avatar

@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,
@Janik@chaos.social avatar

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

#nix #nixos

danielsiepmann,

@Janik Cool, uses . I like that :)

hexa,
@hexa@chaos.social avatar

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,
@hexa@chaos.social avatar

@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,
@sandro@c3d2.social avatar

@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 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,
@pbsds@snabelen.no avatar

@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,
@leftpaddotpy@hachyderm.io avatar

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.

https://jade.fyi/blog/pinning-nixos-with-npins/

#nix #nixos

leftpaddotpy,
@leftpaddotpy@hachyderm.io avatar

@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,
@whitequark@mastodon.social avatar

@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,
@jonoabroad@mastodon.nz avatar

Help your elderly idiot 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,
@spmatich@ioc.exchange avatar

@jonoabroad

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,
@jonoabroad@mastodon.nz avatar

@spmatich yeah I am unsure if it is Nix, podman, some combination or 🤷‍♂️

I think it's working, but also, 😬

raito,
@raito@nixos.paris avatar

I have been working on something, which is not totally ready.

Most of the deployment tools in the 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 (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,
@doomy@mastodon.social avatar

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.

sandro,
@sandro@c3d2.social avatar

@doomy @readeck I usually find a similar service and copy paste from that.

You place files in etc with environment.etc and then you bailsically construct the systemd service and maybe enable a few other bits it needs.

davisrichard437,
@davisrichard437@mastodon.social avatar

Okay I'll bite... which side should I be on for the drama?

AngryAnt,
@AngryAnt@mastodon.gamedev.place avatar

@davisrichard437 This post was an excellent lightning rod. Thank you for your service ;)

jakehamilton,
@jakehamilton@hachyderm.io avatar

The latest issue of #NixPkgsNews is out!

https://nixpkgs.news/

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!

https://www.patreon.com/jakehamilton

#Nix #NixOS #NixPkgs

Qyriad,
@Qyriad@chaos.social avatar

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

#NixOS #Nix

chrism,
@chrism@chattingdarkly.org avatar
yisraeldov,
@yisraeldov@linuxrocks.online avatar

@chrism

"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. is so embedded in that it is hard to take any complaints about other partners or sponsors seriously.

sandro,
@sandro@c3d2.social avatar

@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,
@bitprophet@social.coop avatar

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 setup has plummeted now that the community is splintering.)

bitprophet,
@bitprophet@social.coop avatar

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,
@webology@mastodon.social avatar

@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.

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