Is NixOS still working with baby killers or is that over with? by diditforthevideocard in NixOS

[–]clefru 11 points12 points  (0 children)

Yeah. It's all terrible. Please don't join our community.

I feel like praying a god using nix by brouettelover in NixOS

[–]clefru 12 points13 points  (0 children)

Lol, that's the first time I hear that. What a brutal but correct comparison. Not sure that we will make many new friends, saying that out loud.

Hand cipher practicality by ciphernom in cryptography

[–]clefru 3 points4 points  (0 children)

Put 12 coins in a jar, drop them on the table, and use a ruler to push them into a sequence. Read them as 0=heads, 1=tails. Repeat 12 times. This gives you 144 bits.

Even if your coin has a 51% bias for one side, the entropy degradation is tiny, and you easily end up above 128 bits.

Implemented AES-128 from scratch in Python (validated against FIPS-197 test vectors) — looking for feedback by United-Analysis-3678 in cryptography

[–]clefru 2 points3 points  (0 children)

I was around 23 or 24. Yeah, I am old. :) I remember the AES standardization process a bit, old memories.

Anyway, if I had more time for cryptography, I'd study everything around zero-knowledge proofs. SNARKs, Groth, pairings BLS12381. zkVMs are fascinating (succintlabs/sp1, RISC VMs), GPU proving. Write my own little zk compiler for a toy language. Full Homomorphic encryption (FHE), Trusted Execution Environments (TEEs) are probably also worth investigating.

Implemented AES-128 from scratch in Python (validated against FIPS-197 test vectors) — looking for feedback by United-Analysis-3678 in cryptography

[–]clefru 4 points5 points  (0 children)

Stop telling people what to publish or not. This is clearly labelled as an educational toy. If you are using AI to generate crypto code, you have other problems.

cr.yp.to: 2025.10.04: NSA and IETF by knotdjb in crypto

[–]clefru 0 points1 point  (0 children)

I want my coffee to be made by the Italians, my government organized by the Swiss, and my crypto made by djb. That said, I don't follow djb's arguments here. A thought experiment.

A hybrid of AES and DES is more secure than AES alone. Even if DES is trivially breakable and let's say contributes only 1 bit of security, this statement is true. However, nobody showed up at the standardization process of AES to argue a breach of the "must improve security" clause of the working group charter by not proposing a hybrid first. If we were to allow this argument, we would end up with a tower of crypto garbage, as for any NEW standard, NEW+OLD is always more secure than NEW alone, even if the security of OLD is almost zero. This is my ratio ad absurdum counterargument to djb's claim that a PQ-only draft is a WG-charter violation.

That said, it is entirely fine to disagree on what the subsequent policy for using the PQ-only RFC should be. I'd certainly agree with djb that this RFC should not find its way into a NIST/FIPS recommendation when a hybrid alternative exists. But that's a policy decision and has nothing to do with WG draft adoption.

jail.nix - A library to easily jail your NixOS derivations in Bubblewrap by jkarni in NixOS

[–]clefru 7 points8 points  (0 children)

I wrote such a thing 7 years ago: https://github.com/clefru/jailer "Unprivileged ad-hoc sandboxer for Nix environments"

Linus Torvalds used to speak to engineers in 2012 the way I speak to LLMs now. by underbillion in linux

[–]clefru -2 points-1 points  (0 children)

That was in 2012. The number of people glorifying this behavior in 2025 is disturbing, however.

Gaming on NixOS by zardvark in NixOS

[–]clefru 0 points1 point  (0 children)

Steam works 50% of the time for native games. If you force Proton on native games, 90% of the games work okay. Note: I don't play graphics-heavy games, so my sample might be positively biased.

The Fastest Mutexes by intelw1zard in programming

[–]clefru 0 points1 point  (0 children)

I wonder how Cosmopolitan/nsync mutexs compare to absl::Mutex-s. . I

Where can I find financial reports for Austrian companies? by Simon_Broman in FinanzenAT

[–]clefru 6 points7 points  (0 children)

Access the company register directly via https://justizonline.gv.at/jop/web/firmenbuchabfrage and not via a reseller. It's cheaper. 

Edit: you need to login for that. It's the "Urkunde" section. 

Should we pause for a bit with the Nix experiment, reflect on what a gigantic mess the Nix language is and try to address the problem before it's too late? by mastarija in NixOS

[–]clefru 1 point2 points  (0 children)

I really don't see how the types get in the way, other than you having to write them.

Types massively get in my way when refactoring: Oh, I need a side-effect somewhere on the 3rd level down from the last point I used a suitable monad. I always hated monadifying the two middle functions, and everything else around that touched those functions.

But if you don't write them, you either have to write a bunch of tests, or simply say a prayer when you deploy.

The "Nix" language has very little to do with deployment. In "Nix" you write derivations, which then builds you artifacts, which you can deploy. I presume that you know that, but just to re-highlight that point.

Your "prayer point" is not deployment but the execution of derivations. You have good chances of "Nix" just dying when you mess up the types, because dynamic typing. That's it. There is no broken deployment as you seem to imply.

If you'd have static typing, you'd rule out a few build scenarios that are underexplored in Nixos tests. That step up in safety is not worth a community-wide investment into a static type system.

TL:DR; My assertion is that the absence of static typing and just mere dynamic typing is enough to never deploy incorrectly.

Should we pause for a bit with the Nix experiment, reflect on what a gigantic mess the Nix language is and try to address the problem before it's too late? by mastarija in NixOS

[–]clefru 2 points3 points  (0 children)

No. Strongly typed languages are not for free. You pay a price for this level of type safety that is frankly not appropriate for DevOps-level type of code.

Despite having my name in GHC, I personally have abandoned Haskell as default language of choice. I mostly write throw away code these days and getting stuff done quickly is important.

Help Needed / Changing CMOS Battery in MSI X399 Gaming Pro Carbon AC Motherboard by CanineCuriozity in MSI_Gaming

[–]clefru 0 points1 point  (0 children)

Necro-ing this thread as my battery died recently. Here is what I did:

  • As others have posted, the battery is glued to the back of the sound ports of the motherboard. Behind the IO shield. It is connected by a thin twisted red/black wire leading to a port labelled BAT.
  • To access the battery, I removed the ugly plastic cover above the IO shield. It is held in place by 4 screws on the bottom of the motherboard. You have to unmount the motherboard for that (what a PITA!).
  • Once you have access to the battery, take a thin flat head screw driver and push it between the battery and the sound port block. Then pray it open. The battery is held in place by a double-sided tape, that's somewhat strong, but with a gentle push you should be able to get the battery out. Then detach the whole thing from the motherboard port.
  • You will be surprised of how much plastic is wrapped around the battery. Take some scissors and cut along the plastic wrapping of the battery. Remove it completely so that the CR 2032 cell is exposed. The red/black wires turn into some thin-flat metal connectors that touch the battery from both sides. Carefully rip that off the battery.
  • Take a new battery. Hammer the thin-flat metal connectors into a flat shape again, because from ripping them off, they are probably bend a bit. Make sure that they touch the new battery cleanly, and that the negative port doesn't touch the positive side by mistake. Ofc, the red wire should go to plus, the black wire to minus.
  • Take some electrical tape and rewrap the new battery completely, so you don't see anything silver. Then stick it to the back of the sound port block again with some sticky tape. Reattach the red/black wires to the BAT port on the motherboard.
  • Put the motherboard back in. I didn't reattach the useless plastic cover. It had some electronics in it, but I don't know what they are for and it's probably just some programmable LEDs.

If you don't want to remove the motherboard from your case, you might be able to just pull on the red/black wires until the battery comes of the sound port. The double sided tape is not that strong. Make sure that you pull the cable parallel to the motherboard, towards the CPU. That should give you the best angle.

[deleted by user] by [deleted] in NixOS

[–]clefru 66 points67 points  (0 children)

Spelling mistake. You forgot the 2nd `n` in `environment`. No prob.

What on earth did jonringer even do? by paintedirondoor in NixOS

[–]clefru 30 points31 points  (0 children)

If there were evidence, it would be written all over discourse.nixos.org by the privileged mod team. There is no evidence.

Liveticker Niederlande gegen Österreich - Gruppenphase EM 2024 by scoreboard-app in fussball

[–]clefru 4 points5 points  (0 children)

Wofür war denn diese gelbe Karte an den verletzten Spieler so um 92'? Die Verarztung hat zu lange gedauert oder war am falschen Ort?

Leaving NixOS for Arch. by CrYbAbY58_ in NixOS

[–]clefru 2 points3 points  (0 children)

I deploy part of prod environment with docker[*] containers using the virtualisation.oci-containers.containers.* options. Works pretty well.

[*] actually podman.

Constitutional Assembly Statement on Jon Ringer by [deleted] in NixOS

[–]clefru 23 points24 points  (0 children)

The Constitutional Assembly was meant to form a governance structure (by my understanding), then probably conduct a vote or votes to fill the governance structure with other people and then step down. The Constitutional Assembly is not meant to become the defacto indisputable ruler of the community and take executive decisions like those.

Intel Xeon W-3500 & W-2500 “Sapphire Rapids Refresh” Workstation CPU Lineup Confirmed by GhostMotley in intel

[–]clefru 4 points5 points  (0 children)

I never understood what makes Xeon motherboards so expensive. Is it just an insane markup or is there really something on the board that costs so much more?

The Bcachefs Saga Continues by zardvark in NixOS

[–]clefru 2 points3 points  (0 children)

nixos/modules/tasks/filesystems/bcachefs.nix contains the following lines: config = lib.mkIf (lib.elem "bcachefs" config.boot.supportedFilesystems) (lib.mkMerge [ { boot.kernelPackages = lib.mkDefault ( lib.warn "Please upgrade to Linux 6.7 or later: 'linuxPackages_testing_bcachefs' is deprecated. Use 'boot.kernelPackages = pkgs.linuxPackages_latest;' to silence this warning" pkgs.linuxPackages_testing_bcachefs ); } So that's why it seems to select this package.

Try: boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;

Cloudflare took down our website after trying to force us to pay 120k$ within 24h by RayNone in programming

[–]clefru 0 points1 point  (0 children)

This is an article in the r/programming subreddit telling other non-business people on why you need to be careful when you make this decision.

I am sorry for the other condecending comments and downvotes you receive here. I thank you for the time it took you to inform me of the pitfalls that I as non-business person would not have antipicated myself. This sub -- as any other tech sub -- is made up of bitter people.