this post was submitted on 11 Apr 2024
53 points (89.6% liked)

Selfhosted

40329 readers
421 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I want to reset my server soon and I'm toying with the idea of using a different operating system. I am currently using Ubuntu Server LTS. However, I have been toying with the idea of using Fedora Server (I use Fedora on my laptop and made good experiences with it) or even Fedora CoreOS. I also recently installed NixOS on my desktop computer and find the declarativeness pretty cool (but I'm still a complete beginner) and could imagine that it would fit well into a server setup.

I have quite a few services running on my server, such as Nextcloud, Conduit (Matrix), Jellyfin, etc. and all in containers. I would also rather not install programs without containers, because 1. compose is super easy to maintain and set up, 2. it remains very clear with containers (and compose) and 3. I believe that containers are more secure. But since I also want to make the services inside the containers available, I currently have Nginx installed as a reverse proxy (not in the container, but on the system) and always create certificates with certbot so that I can use HTTPS encryption.

In the paragraph above I actually described exactly the use-case of Fedora CoreOS, but I have no experience with the system and how it works. That's why I'm still a bit hesitant at considering the OS at the moment. I can imagine that NixOS with its declarative nature seems well suited, since, as I have heard, you can configure containers as well as Nginx and with Nginx also https certificates declaratively. But I could also use a base system like before (Fedora Server or Ubuntu Server) and simply install podman, nginx and certbot and manage everything that way.

Have you had any experience with Fedora Server, Fedora CoreOS, NixOS or a completely different operating system for servers and what are/were your impressions with this setup? Or do you just want to share your knowledge here? I would be delighted.

you are viewing a single comment's thread
view the rest of the comments
[–] towerful@programming.dev 26 points 7 months ago (6 children)

I always think about using nixos. But considering I dockerise everything, I always end up using Debian.
Good old stable Debian

[–] mobergmann@lemmy.world 3 points 7 months ago (5 children)

You can also use container within NixOS and AFAICT even declare the containers which should be running. Also NixOS is sad to be stable, or am I missing something?

[–] lemmyvore@feddit.nl 1 points 7 months ago (3 children)

Just that compiling packages on a server is not ideal.

[–] corgi@lemmy.world 5 points 7 months ago (1 children)

Nixos will use/download cached binaries that are available in its repo. It has one of the biggest repositories of any Linux distro. It's on par with Arch with around 90 thousand packages.

Unless you are doing something custom or niche, your nixos won't have to compile anything.

[–] lemmyvore@feddit.nl -4 points 7 months ago (1 children)

Are all those packages available in binary format? Not familiar with Nix but that's certainly not the case for Arch. Arch has 85k packages in the AUR as source recipes but not as binaries.

I still think Debian makes a better use case for a server since it provides everything as binaries.

If you're going to use binaries what's the point of using Nix anyway? The declarative aspect is nice in an abstract sort of way but you can achieve a system deploy or restore just as fast by installing a vanilla system and a few config files.

[–] corgi@lemmy.world 7 points 7 months ago

Yes, all packages in nixos are available as binaries to download.

The comparison with Arch was just in terms of number of packages. Not the binary availability.

At the bottom of this page, they say that binary cache is currently at 120TB. https://nixos.org/community/index.html

If packages being available as binaries is the main criteria, nix has you covered there.

The biggest issue for most people with Nixos is the learning curve just because it's so different.

load more comments (1 replies)
load more comments (2 replies)
load more comments (2 replies)