737
Btw i used Arch! (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] takeda@lemmy.world 83 points 10 months ago

Arch? That's so 2020. With NixOS you can just rollback if you make a mistake.

https://i.redd.it/tlmg36zoel671.png

I use NixOS BTW.

[-] 0x4E4F@sh.itjust.works 21 points 10 months ago

You can do that with any distro and BTRFS.

[-] takeda@lemmy.world 13 points 10 months ago

That's just a snapshot. What NixOS allows you to create configuration that will deploy your OS configured the way you like, possibly post it on places like GitHub deeply a new machine confused the exact same way.

You can even do something like this: https://grahamc.com/blog/erase-your-darlings/

[-] 0x4E4F@sh.itjust.works 4 points 10 months ago

You can do the same with void-mklive. Boot, install, you have the same system that is on the live USB on your HDD/SSD.

[-] platypus_plumba@lemmy.world 3 points 10 months ago

I've never used btrfs. Can you give an example of an error and how it is corrected?

[-] takeda@lemmy.world 3 points 10 months ago

BTRFS and ZFS filesystems offer lightweight snapshots. So you can save the state of the filesystem and restore it. It is often integrated with the package manager and a snapshot is involved before you make change.

NixOS works differently. You have a configuration file, and each time you make change to it NixOS rebuilds itself to its specification from scratch (you might assume it would be a lengthy process, but because of caching only things that are rebuilt are things that you are changing).

This means that things like for example squeezing from KDE to Gnome or X11 to Wayland aren't scary to try and you can easily revert things back, your home directory won't be touched.

Also those things aren't exclusive you can use BTRFS and ZFS on NixOS to and enjoy their benefits.

[-] 0x4E4F@sh.itjust.works 2 points 10 months ago

You can also exclude any directory you like from snapshots, including home, that's not a problem.

[-] takeda@lemmy.world 4 points 10 months ago

Yeah, you can if you plan well enough (typically. What I'm trying to illustrate is that this works by taking a snapshot of the disk in time. It's like keeping a working copy of your system on your disk to be able to revert to.

While with NixOS you work with a "recipe" how your system is supposed to be configured. It is much lighter. It is declarative, you change the recipe and get what you described, you change configuration and all packages which you did not mention and are not used by anything are gone. If you update your system you can use the same configuration on it

The thing is that using can still get BTRFS or ZFS and use it to have snapshots too (for example your home directory)

[-] bruhduh@lemmy.world 2 points 10 months ago* (last edited 10 months ago)

Nah man, 3 months ago i had fedora 38 btrfs, timeshift refused to work because subvolumes wasn't done, but i installed everything in auto gui mode, i did them by the manual after installation, timeshift started working just fine, a week further update to fedora 39 came, i updated, everything broke because of subvolumes, i loaded fedora recovery mode from grub, tried to roll back with timeshift btrfs, it rolled back to 38 but everything was still broke, and more over, whole ssd with this installation became locked, had to recover data from completely locked up ssd, in the middle of the process it locked even further, so i couldn't even copy some files when disk was connected as external

[-] 0x4E4F@sh.itjust.works 3 points 10 months ago

Have no idea what RH did that would do that during an update.

I manually set up BTRFS every time, haven't had any problems. But, I use Void, not Fedora.

[-] neonred@lemmy.world 3 points 10 months ago

nix-env / nix-channels / nix profile / homemanager ?

[-] HuntressHimbo@lemm.ee 3 points 10 months ago

NixOS ended up disappointing me a fair bit. I just tried it recently and the KDE support seems very rough so far, or at least I couldn't find good answers to how to configure it and theme it.

[-] vox@sopuli.xyz 2 points 10 months ago* (last edited 10 months ago)

kde theming is pretty much independent of your distro tho?

[-] HuntressHimbo@lemm.ee 4 points 10 months ago

One of the main draw of NixOs is the reproducibility of builds, meaning that redoing the build will provide the exact same output each time, so Nix encourages you to make configuration changes through the package manager. I've mostly overcome my theming woes with home-manager now, but this comment was speaking to a little wrinkle I had when I was trying to learn and take advantage of the OS's features as best I could.

[-] takeda@lemmy.world 2 points 10 months ago

Home manager is the way to do it though.

The main configuration handles configuration of the system, home manager project was created to bring similar functionality for the user home directory. That's where the name comes from.

Home manager also works great when using Nix on other systems to manage for files, for example on OS X.

[-] MonkderZweite@feddit.ch 1 points 10 months ago* (last edited 10 months ago)

NixOS would be top and bottom, and the Orca, alltogether?

[-] Black616Angel@feddit.de 1 points 10 months ago

Please don't post reddit links.

I can never look at them, since they apparently block mullvad.

this post was submitted on 01 Jan 2024
737 points (98.6% liked)

linuxmemes

21172 readers
830 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.

  • Please report posts and comments that break these rules!

    founded 1 year ago
    MODERATORS