• 1 Post
  • 10 Comments
Joined 2 years ago
cake
Cake day: February 13th, 2025

help-circle


  • haha, no, depending on your use case zfs is mostly set and forget, you just have to get a set of sane defaults, which, at least for me, is way easier and saner than stuff like btrfs. Arch wiki is a good source for that.

    scrub is a command that reads data from disks and verifies checksums, it can automatically heal the corrupt data if some redundancy is available. 0 bytes repaired means nothing was repaired, 5 errors mean that there are 5 instances where the recalculated checksums of data did not match the expected values that were calculated when initially written. Normally the command would output ‘scrub repaired 0B with 0 errors’, that’s how you know that the pool is healthy.

    shprutzling the cache vdevs sideways is generally required only for obscure optimizations, I’ve never seen a case where a wrong setting would lead to data loss.

    The gotchas come from a single thing: the stupid CDDL licence, which is not compatible with GPL. That means that zfs is not included in linux kernel and most of the normal linux userspace filesystem stuff do not work with zfs.

    Also, keep in mind that zfs is generally almost impossible to fuck up, what I’ve done here is a result of extreme dedication and like 8 years of experience.






  • I was using a mix of debian servers, arch thinkpads and macos macbooks at the point where I moved everything to NixOS (macbooks did not survive this transition and were donated due to never working properly because of t2 issues).

    Nix is extremely hard. I mean, don’t get me wrong, initial setup is easy, adding and updating packages is the easiest experience between all package managers out there, nixpkgs is overpowered as it has almost all the software that exists since there are no conflicting dependencies in nix. Getting something that is not in nixpkgs to run is impossible for a beginner (nixpkgs has steam-run to partially solve this, but results may vary). Getting to the point where a tornado may pass through your home and destroy all the hardware inside, and the whole recovery process from that point is about 20 minutes of your time, including the trip to the store for new hardware, requires significant effort, both time and mental, that most of us don’t have. But the entire point is that it is possible with Nix!

    If Debian is like owning a 90s Corolla, NixOS is like owning a factory that can make any car you like. You can choose to get a 90s Corolla, you can choose to get a newer Corolla, you can skip corollas entirely and make something new and fast. When the new and fast thing breaks, you can make a new car or go back to the Corolla. The Corolla comes completely ready to use by you from the production line. If you need to adjust the mirrors, you just make a new car with the correct mirrors setup. All the cars you make after that will come with the mirrors setup how you like them, because that is now a part of the manufacturing instructions the factory has.

    The only caveat is that factory gets updates every 6 months and then your car building pipeline may break when you get the update. In three years I’ve been using nixos fixing those took about 5 minutes and usually boiled down to stuff like ‘previously we had a list of car colors, passed as a string, now the factory expects to get a hex color code’.

    Judging by the commit history, I moved most of my machines to NixOS after about 6 months building my config, then, 8 months later I rebuilt the entire thing from scratch when I understood nix enough to make everything truly modular.

    I really doubt that once you’ve embraced NixOS you’d be tempted to use anything else or try LFS. NixOS is beautiful. NixOS just works (after 6 months of setup).



  • Profiles are nice and all, but remember, that there are still ways to track you across profiles (serious determination required), like the network stack being mostly shared. Here’s the thread.

    If you truly need isolated apps, consider getting multiple phones. I personally have three devices for this. For example, my main device (where I actually use the web browser and which is connected to my private network) runs only a limited set of foss apps. This will solve the alarms issue as well as this device has only one profile.


  • I work for a company that is one of the top worldwide plastic polluters. We use plastic in packaging. I was in an astonishing series of meetings recently, organized by the global corporate office for legal, R&D and supply chain that went like this:

    First, we had a series of trainings about climate change that had none of the typical bullshit. They straight explained that the whole idea of recycling is stupid and shifts focus to the part where it makes the least impact, that carbon offsets don’t really work, that we can’t rely oil running out because the environment and the economy will collapse way sooner than that will happen.

    The second part was I guess appealing to people’s emotions by showing devastating effects that humans have caused already, for example there was a picture of starved baby bird that died because the parents were feeding it plastic garbage from the ocean.

    The third part was practical plans to make various industries sustainable, the point was that drastic measures are required for most companies and that the worst offenders are not consumer-facing so relying on public pressure will not work.

    The fourth part was about practical challenges that are not solved yet in our company and everyone got a list of goals they should achieve by 2030. Removing the plastic entirely was one of the goals.

    They actually talked about the number go up problem and how we should lobby for extremely strict sustainability legislation. I’m now personally responsible for implementation of glass or aluminum packaging that should be returned and reused. I even became a bit optimistic about the future, because typically I imagine my kids (if I had any) in 30 years living in a fascist state and their job is manning the machine guns against waves of migrants from Africa where the environment collapsed and crops failed.