Readit News logoReadit News
nbf_1995 commented on I stopped using NixOS and went back to Arch Linux   developic.dpdns.org/blog/... · Posted by u/birdculture
ruffsl · a day ago
In using your server as a proxy cache, do you just include the server as a nix cache substitutor, or simply use a MITM approach using something like squid proxy?

If the former, via substitutor (or if also using a remote builder), how do you manage when moving portable clients outside your LAN? E.g. traveling with your laptop? Do you tunnel back home, have a toggle to change substitutor priorities?

I find it the default timeout for unresponsive substituters excessively long, as well as the repeated retries for each requested derivation annoying, rather than it recalling and skipping unresponsive substituters for subsequent derivations in the same nix switch/build invocation.

nbf_1995 · a day ago
The server is configured as a caching reverse proxy (just nginx with cache.nixos.org as upstream) which I think is similar to squid proxy.

Outside my LAN I do have the ability to tunnel home, but depending on the connection and the updates I just deal with the timeouts, or just wait until I get home.

I think technically you can override substituters using cli options but its not ideal. There are several proposals for configuring timeouts per substituter but none of them are merged yet.

nbf_1995 commented on I stopped using NixOS and went back to Arch Linux   developic.dpdns.org/blog/... · Posted by u/birdculture
nbf_1995 · 2 days ago
I think this is a mostly fair criticism of nixos. Nixos has a lot of powerful tools, but if you don't need them, they can get in the way. Some assorted notes:

> unless you run nix-collect-garbage periodically

    nix.gc.automatic = true;
    nix.gc.options = "--delete-older-than 10d";
> the constant cycle of rebuild → fix → rebuild → fix → rebuild

I've found this useful to eliminate the rebuild loop: https://kokada.dev/blog/quick-bits-realise-nix-symlinks/ It lets you make the config of the program you choose a regular mutable file instead of a symlink so you can quickly iterate and test changes.

> In contrast, Arch Linux simply downloads prebuilt binaries via pacman or an AUR helper

If a binary exists. A lot of AUR packages I used to rely on didn't have a binary package (or the binary package was out of date) and would have to build from source. On nixos my machines are set up to use distributed builds (https://wiki.nixos.org/wiki/Distributed_build). Packages that do need built from source get built on my server downstairs. The server also runs a reverse proxy cache so I only need to download packages once per version.

Distributed AUR builds are possible on arch, but they require a lot of setup and are still fragile like regular AUR builds, your only choice of dependencies are what's currently available in the repos.

> On my machine, regular maintenance updates without proper caching easily take 4–5+ hours

It sounds like the author may be running the unstable release channel and/or using some heavy unstable packages. Which might explain a lot of other problems the author is having too.

Back when I used arch, I found that as time went on, my system would sort of accumulate packages. I would install $package, then in the next version of $package a dependency would be added on $dep. When I updated, $dep would be installed, then eventually $package would drop the dependency on $dep, but $dep would remain installed. I would periodically have to run pacman -R $(pacman -Qtqd | tr '\n' ' ') to clear out packages that were no longer required.

nbf_1995 commented on Level S4 solar radiation event   swpc.noaa.gov/news/g4-sev... · Posted by u/WorldPeas
nbf_1995 · 2 months ago
Title says "S4" solar radiation event, but the linked page says "G4" geomagnetic storm
nbf_1995 commented on I switched from VSCode to Zed   tenthousandmeters.com/blo... · Posted by u/r4victor
bargainbin · 2 months ago
I switched to Helix and ZelliJ, ZelliJ really allows you to setup some IDE features and helix is like the surface layer of Vi.

Combined it becomes a very powerful setup!

nbf_1995 · 2 months ago
Can you expand on how you use Zellij? I tried it and I understand you can use it for splits, and tabs similar to tmux. But I might revisit it if it allows an IDE like workflow with Helix.
nbf_1995 commented on Is Mozilla trying hard to kill itself?   infosec.press/brunomiguel... · Posted by u/pabs3
Iolaum · 3 months ago
The web without ublock origin is a hellscape. Whenever I try another browser, I immediately go back to firefox.

Do these people even know their users?

For example: Fedora Silverblue default Firefox install had an issue with some Youtube videos due to codecs. So I tried watching youtube on Chromium. Ads were so annoying I stopped watching by the second time I tried to watch a video. Stopped watching youtube until I uninstalled default firefox install and added Firefox from flathub. If the option to use a good adblocker gets taken away I 'll most likely dramatically reduce my web browsing.

P.S. Maybe someone ports Vanadium to desktop Linux? If firefox goes away that 'd be my best case desktop browser. Using it on my mobile ;)

nbf_1995 · 3 months ago
> Maybe someone ports Vanadium to desktop linux

https://github.com/secureblue/Trivalent

nbf_1995 commented on I made a quieter air purifier   chillphysicsenjoyer.subst... · Posted by u/crescit_eundo
runariot · 4 months ago
Why do computer fans blow air inside?
nbf_1995 · 3 months ago
I think it's because there are no grills on the outside. If the fans were sucking air out of the box, dust would build up on the outside, and bumping it would dislodge dust back into the environment.

With the fans blowing in, all the dust is on the inside of the box (and on the fans).

The box fan version also blows air into the box

nbf_1995 commented on State of Embedded: Q4 2025 Overview   sbcwiki.com/news/articles... · Posted by u/HeyMeco
tonetegeatinst · 4 months ago
Does any SBC offer SFP+ or SFP28?

I don't see any option to sort by network speed or network chip

nbf_1995 · 4 months ago
The solidrun LX2 offers 4x SFP+, but that board is getting quite old at this point.

There are a couple of bananapi router boards that have 1 maybe 2 SFP+

nbf_1995 commented on Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised   socket.dev/blog/ongoing-s... · Posted by u/jamesberthoty
pier25 · 6 months ago
So glad I left JS for backend last year. It was a big effort switching to a new language and framework (still is) but it looks like so far the decision was worth it.

I'm still looking at Bun and all the effort they're doing with built-in APIs to reduce (and hopefully eliminate) third party deps. I would prefer using TS for the whole stack if possible but not at the expense of an insecure backend ecosystem.

nbf_1995 · 6 months ago
Just curious, what did you switch to?
nbf_1995 commented on The GitHub website is slow on Safari   github.com/orgs/community... · Posted by u/talboren
sunaookami · 6 months ago
fyi this page detects a hacker news referrer and sends you in an infinite loop. Have to open the link via copy-paste.
nbf_1995 · 6 months ago
Firefox has a setting in about:config to only send referrer headers when navigating to links on the same base domain.

network.http.referer.XOriginPolicy = 1

nbf_1995 commented on Leaving Gmail for Mailbox.org   giuliomagnifico.blog/post... · Posted by u/giuliomagnifico
nbf_1995 · 7 months ago
Something to note: Certain service providers (e.g. Twitch) will not allow you to sign up using an '@mailbox.org' email address. I do not know if this ban extends to custom domain addresses.

u/nbf_1995

KarmaCake day82August 19, 2022View Original