this post was submitted on 24 Jan 2024
105 points (95.7% liked)

Linux

48310 readers
645 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 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] null@slrpnk.net 3 points 10 months ago* (last edited 10 months ago) (1 children)

I believe that's correct -- if nothing has changed from your last generation, then the new generation will be identical. But if something has changed, it will do a bunch of duplicating and remapping symlinks in the Nix store to ensure that everything plays nicely together and that you can rollback to a previous generation if needed.

So if you do a rebuild switch regularly, you will end up with gigs worth of old "copies" of things that aren't being referenced in your current generation.

That's what nix-collect-garbage handles -- once you know your current generation is working well, you collect the garbage and recover that space, at the expense of not being able to roll back.

That's why I think building a core system with NixOS and then having user software come from Flatpak is a nice combo for simple workstation that won't update and bork itself, leaving my grandpa without a laptop until I can come take a look.

Edit: To clarify, nixos-rebuild-switch won't update your Flatpaks at all -- just the Flatpak service

[–] lambda@programming.dev 1 points 10 months ago* (last edited 10 months ago) (1 children)

That makes a lot of sense. I can setup their computer with nixos and stuff that needs to be updated regularly (like a web browser) can be flatpak which should be more stable too.

Then flatpak update would get them updated without rebuilding the whole OS.

My grandparents have been rocking Linux Mint for a few years. I have managed Chrome through Flatpak since I discovered that was possible on Mint. I've been flirting with the idea of having NixOS instead so I don't have to remember what I've configured in the past. I'm not 100% sure now though :-P

[–] null@slrpnk.net 1 points 10 months ago (1 children)

Exactly right. Throw in Plymouth and set the bootloader timeout to 0 and you've got a noob-friendly workstation.

[–] lambda@programming.dev 1 points 10 months ago (1 children)
[–] null@slrpnk.net 2 points 10 months ago* (last edited 10 months ago) (1 children)

It's a graphical boot screen.

Just helps eliminate all the bootloader noise you see when booting up or powering off that make scare off less tech-savvy folks

[–] lambda@programming.dev 1 points 10 months ago

Oh cool. My grandparents don't have any idea that scrolling text isn't normal on startup. Neat project though!