25
submitted 2 years ago by ouigol@lemmy.world to c/linux@lemmy.ml

Last time I didn’t upgrade for a long while some drivers broke, maybe I’ll just switch to NixOS this time since it seems interesting. Does anyone here use NixOS? What do you think about it?

top 31 comments
sorted by: hot top controversial new old
[-] jaybob@lemm.ee 11 points 2 years ago* (last edited 2 years ago)

I’ve had no problems, as long as I’ve updated the keyring first sudo pacman-key —refresh-keys. I’ve probably gone a few times not upgrading my system for a while and I had minimal problems.

[-] Eufalconimorph@discuss.tchncs.de 5 points 2 years ago

NixOS + Home Manager user here.

I run in an opt-in state config. / is tmpfs. /home is tmpfs. /boot and /nix are real filesystems. At boot, the EFI loader reads the configuration from /nix/persist/etc/nixos/flake.nix, symlinks all the programs and configs into / and /home, and startup proceeds as normal.

That means nothing persists across boots unless I add it to my config. Cruft doesn't accumulate in hidden areas, it's all in my config. That keeps things fast, makes management easier, and makes troubleshooting easier.

[-] borlax@lemmy.borlax.com 4 points 2 years ago

I use Debian so that i can ignore it for a year and it still wont break.

[-] jaykstah@waveform.social 4 points 2 years ago

I've gone like 5 moths without updating a laptop on Arch before and the only thing I had to deal with was updating keyring first

[-] bzxt@lemmy.ml 1 points 2 years ago

Same, maybe even longer in my case.

[-] SolemnAttic@feddit.de 4 points 2 years ago

I am using NixOS and have used Arch before. Its great. No dependency hell, superb config management (with home manager) and builtin rollbacks. But the nix language is somewhat arcane. Error messages are only somewhat helpful and docs are really lacking. NixOS also uses quite the amount of disk space in its store. Would only recommend NixOS if youre a resourceful programmer (or not)

PS. Ive never had arch break any drivers on me, or any upgrade failing (unless a package itself is borked, but they usually put out posts for this). But my systems all amd, ymmv

[-] ouigol@lemmy.world 0 points 2 years ago

Oh yeah I use nvidia so it’s pretty unsurprising. How much coding is required? I know how to code so it’s not a very big deal but I’d like to have an idea.

[-] theshatterstone54@feddit.uk 1 points 2 years ago* (last edited 2 years ago)

As someone elase said, it's not really coding but more like writing a configuration. If you need an example (I'm using AMD so there will be some changes required) you can check out my own config at https://gitlab.com/theshatterstone/nix-conf

Edit: Also, the note on shebangs applies to all scripts within NixOS.

[-] SmallAlmond@lemmy.dbzer0.com 1 points 2 years ago

Thank you so much for your example, I'm new to NixOS coming from arch and these are all very helpful.

[-] Max_P@lemmy.max-p.me 3 points 2 years ago

Most likely, nothing will happen. Arch breaking if you don't updating 5x a day is more of a meme than a reality.

I've updated a client's Arch server that hadn't been touched for years, and it went just fine.

You're the user, you're in control, you're empowered to make sure it won't break after the update, you're empowered to fix it if it does.

[-] llii@feddit.de 1 points 2 years ago

I update my arch computer maybe once a month for years and it works fine.

[-] Ge6xd@lemm.ee 3 points 2 years ago

After a long time I usually upgrade the keyring first with pacman -Sy archlinux-keyring For upgrading I like to use Topgrade which also upgrades other stuff (snaps, flatpacks, pip, ...)

[-] jayandp@sh.itjust.works 2 points 2 years ago

For upgrading I like to use Topgrade which also upgrades other stuff (snaps, flatpacks, pip, ...)

Aaannnddd saved.

[-] Fryboyter@discuss.tchncs.de 2 points 2 years ago

I have several virtual machines here with Arch that I often don't use for months. And when I do use them, I proceed as I do with every update. So before an update, I check if something has been published at https://archlinux.org/news/ that affects the installation in question. This is done automatically with the help of the tool informant. If something has been published that affects my installations, I take that into account. Otherwise I run pacman -Syu as usual. And that's it.

[-] Xylight@lemmy.xylight.dev 2 points 2 years ago

I use NixOS. Was a kinda rough start since it was annoying to install apps through a config, but after getting my config fully fledged out I love it. A declarative system is a dream for a dev, I can just copy my config to a new system, run one command, and I have my entire system back! Very stable as well

[-] Trainzkid@lemmy.ml 2 points 2 years ago

I've got an Arch server that I update monthly (and have been for 2+ years now), and a desktop that I update maybe 2-3 times a week. I've not had any issues, so long as I update the keyring first. Good luck!!

I do a weekly patching on my Arch server. So far so good!

[-] runawaycorvid@rammy.site 1 points 2 years ago

(Disclaimer that I’m still new-ish to Linux)

I just went about a year between EndeavorOS updates on a laptop and uhh… it wasn’t happy. I just installed Kubuntu which hopefully will be more forgiving haha.

[-] happyhippo@feddit.it 3 points 2 years ago

I don't get why so many folks try niche stuff when the tried and proven solution is out there.

Tumbleweed, excellent support for KDE, rolling, great defaults, snapshots out of the box, lots of support/documentation, OBS...

[-] walthervonstolzing@lemmy.ml 1 points 2 years ago

Snapshots require btrfs though, don't they?

[-] JRepin@lemmy.ml 1 points 2 years ago

Yes, you are correct

[-] mvee@lemmy.ml 1 points 2 years ago
[-] mvirts@lemmy.world 1 points 2 years ago

Hey look it's my alt account

[-] mrh@mander.xyz 1 points 2 years ago* (last edited 2 years ago)

I've never used Arch or Nix, but I switched from Void -> Guix and have been very happy with it. It's such a huge peace of mind to be able to have your whole system declaratively configured, package changes being atomic and generational (rollbacks so no worries about breakage), Guix shell for messing about, and being able to make your system do anything you can write in Scheme.

That's my daily driver. On servers so far I've gone with Debian Stable + Guix.

Also Void is still a fantastic distro, and is what I would use if not for Guix/Nix.

[-] parsnip283874@lemmy.sdf.org 1 points 2 years ago

Is guix pull still slow? That was a problem I and a few others had a while back.

[-] mrh@mander.xyz 2 points 2 years ago* (last edited 2 years ago)

guix pull && guix upgrade is still a bit slow, but I never thought excessively slow (definitely slower than xbps, pacman, and probably apt too).

I guess I never thought much about it because of rollbacks, so it’s safe enough to just cron.

What does Guix use for its init system?

[-] mrh@mander.xyz 2 points 2 years ago

GNU Shepherd! Written and configurable entirely in Guile Scheme, just like Guix itself.

Interesting! Thank you for that. The only init systems I am really familiar with are the old system V, rc.d, OpenRC, and systemd. I actually don't mind systemd all that much now that I've gotten used to it. I still don't like the way Poettering basically forced it on us but it's tolerable.

load more comments
view more: next ›
this post was submitted on 09 Jul 2023
25 points (90.3% liked)

Linux

56904 readers
437 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS