this post was submitted on 13 Jun 2025
13 points (78.3% liked)

Linux

3258 readers
31 users here now

Shit, just linux.

Use this community for anything related to linux for now, if it gets too huge maybe there will be some sort of meme/gaming/shitpost spinoff. Currently though… go nuts

founded 2 years ago
MODERATORS
 

I think the least that distros can do, is allow listing all packages and system settings in config files like .toml rather than having to type in every single package to install, or click through system setting GUIs to setup. Would that require using a whole programming language or system like NIx?

While NixOS works much differently from most distros, that's the only reason I use it: package and system settings in text files. If I fix something, it's fixed permanently, I don't need to hunt down files in random directories if I want to change a setting. If I ever need to reinstall the OS I don't have to write dnf install every single damn package and manually setup all that up all over again. Having daily-drove Windows macOS & Fedora as throughout the years, my setups have felt hacky as well as houses of cards as I've wanted or had to set them up again (I don't mean Fedora specifically, but distros in general).

Basically it feels insane that it's the way most linux users and servers in the world operate. If I, a humble computer hobbyist can figure out Nix, why don't more users do so, and why is Nix so niche?

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 4 hours ago

Traditional distros were born in the 'single physical server' era, prioritizing flexibility over reproducibility; NixOS emerged in the 'cloud-native' era with 'system-as-code' at its core.

[–] programmer_belch 5 points 4 days ago

If you only want a text file with installed packages, a simple

sudo apt list > packages.txt

Should work. Using this file, it is possible to reinstall all packages as

sudo apt install $(cat packages.txt)

[–] [email protected] 3 points 5 days ago

If you just want to have the list of packages saved in a text file and use that file for apt/dnf/... you could just

sudo dnf install $(< list.txt)

[–] [email protected] 1 points 4 days ago

In Slackware, just do an "ls /var/log/packages/*" and your are done.