6
submitted 1 year ago by highspire@sopuli.xyz to c/linux@lemmy.ml

Hey all, I'm wondering about giving NixOS a try. It seems like it's mostly marketed for development environments and CI, but I haven't seen much of anything about it being used on production servers. Right now I manage Alma 8 servers with Salt, and bootstrap Salt with a modified version of the ISO. NixOS seems like it could help streamline how I do things. Does anyone use it and have thoughts one way or another?

you are viewing a single comment's thread
view the rest of the comments
[-] chris@lem.cochrun.xyz 3 points 1 year ago

I love NixOS on the server! Run my non profit that way. It's beautiful really, everything is declared and then you commit that to version control and it's 100% reproducible. Just backup your data.

I would add that you can still do containers like docker, if you really want I believe there is a way to declare your containers too. It's really awesome what NixOS can do.

[-] highspire@sopuli.xyz 2 points 1 year ago

Sweet, thats's a big deal for me as well. Nobody else wants to learn any kind of orchestration or anything, so I've been trying to get Salt to manage the containers I have, and it's a bit of a pain. Having them configured the same way as the server would prevent some headache, I think!

[-] 2xsaiko@discuss.tchncs.de 1 points 1 year ago

Note that unless you really need containers (such as the separate root fs), systemd services can provide pretty much all of container's isolation. It's opt-in but systemd-analyze security can tell you about potential things you can lock down. Some NixOS modules already do this by default.

And together with NixOS's excellent modules which are usually a lot better than the container experience, personally I don't see the use case for containers on NixOS especially looking at the added complexity they bring with them.

[-] highspire@sopuli.xyz 1 points 1 year ago

Ah, good to know, thank you. I hadn't really considered that if the whole environment is scripted out like it is, then I wouldn't get as much benefit out of them as I do otherwise. Good tip!

this post was submitted on 17 Jun 2023
6 points (87.5% liked)

Linux

48375 readers
971 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