this post was submitted on 03 Jul 2025
178 points (96.4% liked)

Linux

56133 readers
1143 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
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 18 points 5 days ago* (last edited 5 days ago) (3 children)

Agreed with the article. There’s lots to dislike about Nix, but even with those downsides, NixOS is still better than any OS I’ve tried. Install an update and it’s borked? No worries. New PC and you want everything set up just like your old one? Copy one file over and it’s set up for you.

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

Install an update and it’s borked? No worries

OpenSUSE also does this.

New PC and you want everything set up just like your old one?

Install scripts? Of course the individual apps definitions still need to be set up again, but I'd imagine it's the same for Nix?

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

Unsure about dislikes. You have any desktop spin as you want, complete freedom, immutable, a single small file governs your entire system. I daily Nix currently and I haven't found an easier distro. I'm not super advanced and I did a full custom build, luks, tweaks, full app installs from scratch. Booted up as if I never left my old PC. Nix is the shit. Most everyone's concerns are overblown. Most haven't used it beyond a simple test run or few. The slight learning curve of your config syntax and that's it. I came from mint then from windows. Newcomers you can do it too!!

[–] [email protected] 3 points 5 days ago (3 children)

Copy one file over and it’s set up for you.

So, I've only played around with NixOS on a Raspberry Pi, but... Don't people usually split their config up in multiple files, and then store than in a Git repository?

The process then still is: check out that Git repository, except there's another step: copy over your private key so that you can decrypt your secrets.

Is that correct? Or did I make things needlessly complex for myself?

[–] [email protected] 1 points 5 days ago (1 children)

Way over complex lol. I don't copy anything to online source for better or worse. I auto script backups. The only backups you'll ever need are nix config. Nothing else aside from your home folder obviously. With those two you can boot on any machine, anytime, as if you never left. I am not shilling. It's been dead stable so far, aside from tweaks I done to break my own builds testing.

[–] [email protected] 2 points 4 days ago (2 children)

Hmm yeah, I guess the question is: is it overly complex if I do want to store my backup of my Nix config online, version-controlled, preferably publicly?

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

No. There are many of us that do that, I do, I found two random people online that did that and used their configs as a help when I was learning.

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

If you do then your golden. That's the way to go. I dislike online things. Personal preference. There's advantages going the GIT method as well.

[–] [email protected] 2 points 5 days ago (1 children)

The process then still is: check out that Git repository, except there’s another step: copy over your private key so that you can decrypt your secrets.

I store my secrets in a separate private git repo and automatically decrypt them with my hardware key (https://github.com/balsoft/nixos-config/blob/master/modules/secrets.nix) so for me it's literally just plug in my yubikey and nixos-install github:balsoft/nixos-config#hostname

[–] [email protected] 1 points 5 days ago (1 children)

How do you access the private Git repo then? Don't you need a secret to access it?

[–] [email protected] 1 points 5 days ago (1 children)

The ssh key to access the private git repo is on the same yubikey as the decryption key (they are technically different GPG slots but I don't need to care about that, just plug the key in, type in the pin, and it all works automagically)

[–] [email protected] 2 points 4 days ago
[–] [email protected] 1 points 5 days ago (1 children)

I don’t have any secrets in my config or a private key or anything and I’m currently running 4 servers from the same config (it used to be 8 or even more machines at some point even, including desktops).

But yes, it’s a multi-file config, it would be absolutely crazy to not split it up with how large it is.

[–] [email protected] 1 points 5 days ago* (last edited 5 days ago)

Is that just because your four servers aren't used for anything that need a secret? e.g. I wanted to put my wifi password in there, and the password for my user account.