this post was submitted on 25 Mar 2024
197 points (95.4% liked)

Linux

48376 readers
1661 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
 

I'll start with mine. yes part of this was to brag about my somewhat but not too unusual setup. But I also wanna learn from your setups!

Anyways: I primarily use Gentoo Linux.

I have two headless servers: a Raspberry Pi 4B and a Oracle cloud VM (free tier). Both running OpenRC, and both were running mainline kernel with custom config (I recently switched the Pi to PiFoundation kernel due to some issues). The raspberry pi boots from SSD and has no sd card inserted.

Both servers were running musl libc instead of glibc for a while. This gave me a couple of random issues, but eventually I got tired and switched back to glibc.

I have a desktop running gentoo and a laptop running arch, but hoping to switch the laptop to gentoo soon.

Both are daily driving wayland (the desktop had nvidia card and used for gaming). The desktop is running a kernel with a minimal config that compiles in 2-3 minutes.

What's your unusual setup like?

you are viewing a single comment's thread
view the rest of the comments
[–] LiveLM@lemmy.zip 5 points 8 months ago* (last edited 8 months ago) (4 children)

Question: are you using Flakes?

I've been kinda dipping my toes on NixOS but the flakes are really throwing a wrench my way.... Yet they are apparently NixOS' future so I'm just kinda stuck

[–] 2xsaiko@discuss.tchncs.de 8 points 8 months ago

Yeah. Flakes are essentially three things (or four if you count the new CLI):

  1. Lock files for inputs (like NPM)
  2. A defined output layout (so, every flake has its packages at packages. for example)
  3. Pure mode (don't worry about it unless you read from arbitrary locations in the file system or try to download files without a hash)

That's it, essentially nothing else changes. It's just a different entry point to Nix code including NixOS configurations.

Here's a great article (apparently, I have only skimmed it myself) explaining flakes more in detail: https://jade.fyi/blog/flakes-arent-real/

[–] pr06lefs@lemmy.ml 6 points 8 months ago

Flakes on the system level aren't too bad. You can pretty much just keep your configuration.nix, but now you call that from a flake.nix. The difference is you remove all your nix-channels and you specify your nixpkgs in your flake.nix. So its really using a flake instead of nix-channels.

The cool part is when you nixos-rebuild the first time, it will save your nixpkgs version in a flake.lock. Then it will stay that way until you choose to upgrade with nix flake update. Nice and stable.

[–] redshift@lemmy.ml 4 points 8 months ago

I felt the same, but I'm reading through this book and so far it's been helpful for understanding and setting up system flakes: https://nixos-and-flakes.thiscute.world/

[–] NuclearDolphin@lemmy.ml 1 points 8 months ago