Laser

joined 1 year ago
[–] Laser@feddit.org 1 points 1 week ago (1 children)

The average Linux user definitely will not care about reproducibility.

I think a lot of people do care about it, just not under that name. But I think a lot of users asked themselves at least once "what did I do back then to achieve X". Not in that the whole system is reproduced 1:1, but certain aspects. That's something much easier to answer with nix.

[–] Laser@feddit.org 1 points 1 week ago* (last edited 1 week ago) (3 children)

Well, you don't need to learn nix as a programming language for a simple installation, you can use it like a slightly different json, which the configuration.nix part was about. You can get the reproducibility aspect from just that, so I wouldn't say you get no benefits at all without learning the language.

There are more disadvantages (like time required to rebuild because you added a single package), so Arch is the better choice depending on preferences. Arch is a very good traditional distribution in my opinion, can't go wrong with it

[–] Laser@feddit.org 5 points 1 week ago (5 children)

Arch is easier in my opinion, at least if you want to leverage the power NixOS can offer. A simple /etc/nixos/configuration.nix maybe not, but once you enter custom options / submodule territory and use stuff like lib.mapAttrs, I'd say NixOS is quite harder. Or just a more complex overrideAttrs. But then again, Arch doesn't have an equivalent to that...

[–] Laser@feddit.org 2 points 2 weeks ago (2 children)

Well I mean they didn't pay for most of the stuff in there in the first place

[–] Laser@feddit.org 13 points 1 month ago

Every card they buy isn't available to a competitor.

Only half joking.

[–] Laser@feddit.org 7 points 1 month ago

"bro imagine if we could actually use all these cards we bought, we'd be the best at this AI thing"

I'm still waiting for an actual business case. Who's going to consume all this slop? And pay for it at one point?

[–] Laser@feddit.org 2 points 1 month ago

Similarly here. Have an Odroid with that platform, it wasn't cheap but it came with several advantages:

  • 4 SATA ports on addition to the M2 slot
  • Intel QSV
  • 2 x 2.5 Gbit Ethernet (I only have gigabit at home though)

Very powerful machine for the power usage, I ran a really old Athlon before though (from 2010 or so that I retrofitted with 16GB RAM) that did most stuff just fine. But I wanted some transcoding and also possibly a smaller case.

I run everything bare metal though.

[–] Laser@feddit.org 33 points 1 month ago* (last edited 1 month ago) (9 children)

Luckily, it's not the entire Internet, just the unfun part.

[–] Laser@feddit.org 1 points 1 month ago (1 children)

While there is quite the push thanks to Valve, they built upon the work of others, mostly Wine (which I think they fund nowadays) and DXVK (they hired the dev after a short while). So they're definitely not freeloading, but the main lifting has been done by Codeweavers and Wine contributors through their massive work over the years, plus the quantum leap that was DXVK.

I'm not trying to shame Valve here, they definitely go beyond what they'd be required to by license, but I feel it's also not fair to call them the reason most games work under Linux when others have poured literal years of work into making it possible.

[–] Laser@feddit.org 3 points 1 month ago

Repo means repossessed, which is only applicable to items purchased under a credit (e.g. you take out a credit to but a car, can't pay it, the car gets repo'd); also they only happen on unsecured loans, it'd be the security that would be transferred to the lender, which in this case is Russian, not Ukrainian.

[–] Laser@feddit.org 8 points 1 month ago (2 children)

The beauty of a loan secured against someone else's assets is that it doesn't harm you if you default. Russia could still leave Ukraine and propose how they repay Ukraine for damages, which would also cover these loans; in return, they'd receive their assets back.

[–] Laser@feddit.org 5 points 1 month ago* (last edited 1 month ago)

The money in the end will most likely go to Europe, as in is given to Ukraine who use it to buy European weapons is my guess. At least until the war is over

The way the article is written is that Europe gives Ukraine a loan that is secured by Russian assets, meaning of Ukraine defaults, Russian assets are transferred to the EU.

1
submitted 1 year ago* (last edited 1 year ago) by Laser@feddit.org to c/nix@programming.dev
 

I just upgraded my NixOS machine after switching to nixos-unstable-small because I think unstable will take some time to update as getting 24.11 out has the highest priority.

Anyhow, two of my packages stopped me from applying a new configuration, as some packages have been changed when reorganizing into pkgs/by-name. I fixed it and wanted to share as this will hit others running unstable with these packages as soon as hydra catches up.

nerdfonts (now nerd-fonts)

Package was renamed, which it will state on evaluation; individual fonts are now part of the nerd-fonts attribute. I had Source Code Pro in there, there was some kind of mapping, which looked kind of like in https://wiki.nixos.org/wiki/Fonts#Installing_specific_fonts_from_nerdfonts – the new way is now to just use nerd-fonts.sauce-code-pro directly, you can probably do something like ++ with nerd-fonts; [ sauce-code-pro other-fonts ] to add multiple nerd-fonts to your fonts list, but I haven't tested this.

RetroArch

Until now, cores were specified as in https://wiki.nixos.org/wiki/RetroArch, however override doesn't seem to work anymore. There's now the withCores attribute / function that expects a function that returns a list. The easiest way I found to just specify a fixed list of cores was (retroarch.withCores (_: with libretro; [ snes9x mupen64plus fbneo flycast ])). Maybe other options are easier / cleaner.

Word of warning on compiling nixos-unstable-small

There are currently a lot of packages to be built if you change into that channel (I'm using flakes, but you get my point). Due to the default value of auto for nix.settings.max-jobs, this meant nix tried to build 24 derivations at the same time. This is fine if these are just downloaded from hydra, but if you try to build 24 big derivations at the same time, each trying to use 24 threads because nix.settings.cores is also 0 by default, which means all threads, build processes quickly ate all of my 32GB of RAM so that the OOM killer had to intervene, however often too late with my system dying. I recommend to set nix.settings.max-jobs to something more reasonable before attempting this (I used 1).

view more: next ›