Effortless Minecraft Servers on NixOS | Simple Declarative Setup
ฝัง
- เผยแพร่เมื่อ 5 ก.พ. 2025
- To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/.... You’ll also get 20% off an annual premium subscription.
Discord server: / discord
Donations: ko-fi.com/vimj...
Donations 2: buymeacoffee.c...
code from the video: github.com/vim...
Also, available on: journix.dev/po...
This video was sponsored by Brilliant.
To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/Vimjoyer/. You’ll also get 20% off an annual premium subscription.
@@vimjoyer congratulations on your sponsorship
I loved the idea of using that font for this video hahaha, what a genius move!
Thanks
It's not quite _the_ Minecraft font, but it's clearly inspired by it.
@@angeldude101
Do you have a link or a name for it?
@@julioau I don't know the exact font used in the video, but I spent some time working with the Minecraft don't by extracting the tile sheets and know that the Minecraft font is a proportional one, where as the one in the video is monospaced.
@@julioau It's called Monocraft
YOOO what the hell the theming for this is crazy. Absolute love this.
i thought the minecraft font was a meme at the start of the video but mad respect for using it throught the entire thing lol
I am ricing NixOS in a VM, friends are playing Minecraft, and THIS drops.
edit: I just realised that everything, from the thumbnail to the font in the video, is Minecraft-themed! love the attention to detail.
I was just researching how to host my own server to play with my friends and not have to pay for Mojang's Realms, this is a moment of Vimjoyer to the rescue, you are great :3
vimjoyer, im so happy for you! you've grown so much and now you're even taking sponsorships! even with all this growth you are still massively underrated. Thank you so much for your videos
I gotta confess that the Minecraft font on the terminal looks surprisingly good. I'm planning on trying NixOS again since I built up more programming knowledge, so maybe I'll mess around with font after I make the jump.
just want to add that nix-minecraft is also getting (neo)forge support "soon". It's taking some time to properly parse everything, since both mojang and forge do some wonky stuff for formatting, and mojang doesn't keep some files declaratively, but hopefully it can be finished soon.
That is awesome
😍What perfect timing, thank you so much for making this so straightforward.
And if you'd like ideas for another video:
1) A terraria server makes a natural companion.
2) Setting up a protective tunnel for these servers like wireguard/tailscale
Noted
I am the creator of flux, it does have the tunnel features. I am going make the features available to all, not just flux users soon
I have 0 intention of ever doing this, but it's just amazing how easy it is. I just started committing to NixOS 2 days ago (so I'm veryyy new) and this shit is so cool.
I was recently planning to switch one of my Minecraft servers over to NixOS, thanks for this! The video I didn't want but needed!
thanks! one month ago i moved to nixos, you have really helped me - i even thought about doing mc server and now this video? amazing job
Great video vimjoyer!
This is the creator or flux, mcman is a cli that can import modrinth and curseforge packs and keep them version controlled.
Flux also has online reverse proxies, so if don’t have and don’t want to pay for a static ip. This is a simple solution to that.
In the future I may make the reverse proxy functionality separate, so anyone can use it.
wow here is logaMaster also
Ayooo congrats on the sponsorship!
That minecraft skin of your is good also just thought yesterday to start playing Minecraft again 😄 thx for this
This is hilarious! I was thinking to myself how nice could be used for Minecraft servers and boom!
Let's goo! Happy to see you taking sponsors.
its me, im part of the overlap
edit: the minecraft font in the code is genius, love this
Excellent video
oh wow, i was looking into this last week, wonderful
awesome visuals!
Thanks!
NixOS and Minecraft. Combination that I'd never thought of
Excellent video !
Love you man!
I wish I knew this like 2 years ago. I'm neck deep in a ubuntu headless machine with my servers on it already. I like the font though ;) nice touch
would be awesome if you published all the ricing you did for this video. i especially love the little gradient for the terminal startup plugin
Everything you see in the video is editing, but my real dotfiles can be found on my github page
NixOS is world of wonders, seriously
I know, right?
I havent watched the vid yet but i know its fire
such a good vid, nice
The built in service has been updated to minecraft-server, as opposed to just minecraft like shown here in the video. Just a heads up for anyone setting this up from now on.
I never thought this could be a thing
Well now I know what I must do.
art.
Hey Vimjoyer,
I like these videos.
How do you create them?
Any software/video editor?
I am using motion canvas
Before migrating to nixos, I have already setup a config around itzg/docker-minecraft-server, and made it synchronizing my modpack in prism launcher. It's good to have an alternative, I guess.
Discord notification gang! 😎
Okay i see what you did with the fonts there ..........
Awesome video 🌞 - is it possible to find the resources used for theming?
It's all video editing
dang its like you read my mind .... and i guess alot of other people had the same thought process as us
nice tutorial
FYI, in 24.05 I needed to instead use services.minecraft-server = { ... }; in my nixos config instead of just services.minecraft{ ... }
Now I want to see a premade nix config for Pterodactyl Panel!
That would be pretty cool actually
Unfortunately pterodactyl said the panel doesn’t work on nixos and they will not make it work.
One day I will see if I can make it work, and make it a nixos module
how do you make these videos? I mean i see that you are editing it, just curious how you do those code reveals and highlights. Looks amazing!
I'm using motion canvas
My home server is a Raspberry Pi 4 running RPi OS (Debian based).
All of my services run in Docker (using Docker Compose), and literally the only thing I changed in the host OS since installation is adding Docker and setting up my network properly.
I like this approach, because with Compose I keep things declarative (and I can easily back up my docker directory containing both the compose.yml files and mointed container data).
Does Nix have good Docker integration? Is it worth swapping from Compose? If not, is it worth using NixOS instead of RPi OS (if the only moditications I made are installing Docker and setting up the network)?
Oh wow, that was long
NixOS has an awesome docker integration, I might make a video about it later
omg vimcraft
The default module service is called minecraft-server, not just minecraft. Why do I always make these stupid mistakes?
should try run the config files you share first 🤣
add this to the description or pin the comment
This is awesome, just set up a minecraft server on nix with tmux, looks like if got some changes to make. I have one question though, is there a way to send commands to the server console?
nix-minecraft allows you to connect to the servers with tmux `tmux -S /run/minecraft/servername.sock`
@@vimjoyer 🤔 will definitely have to check this out now. Thanks vimjoyer!
Thank you so much! i plan on moving to nix after being in endeavour os for a year. if possible, can you show how you made neovim look like that?
Everything you see in the video is editing, so it's not a real neovim
Can you do the same but for minecraft launchers, including that some of them work and some of them don't on wayland
Hey vimjoyer, will you ever make a video about plasma-manager? I think it is in a really good state rn
Sure will
@@vimjoyer That is very great to hear! I have actually recently joined plasma-manager team, so I can help you out if you need to, specially with panel widgets, because they are not really well documented rn
Wanted to migrate my vps to nix
Gonna be useful (:
Impeccable timing as always! And great content as well ;p
I have started migration from Arch with home-manager to a NixOS setup (in a VM for now).
I cobbled together a flake that pulls a modpack from github, overrides some mods and configs with local versions of them (configs need to be persistent and mods I can probably pull, but source is lost to time) and packages all of this in a docker container with nix2container.
How would a sane person transition from that to a systemd service solution while still using derivations to assemble modpacks?
None of solutions mentioned in video work for me because forge and old minecraft versions (except nixos-modded-minecraft-servers, but that one doesn't bother with installation for the same reasons I want something of similar power to derivations)
is there any way to switch the files from a server done with the first method to a server done with nix-minecraft?
Just copy I think
hey! hope its not too late, your tutorial was perfect and i got everything running. however.. is there any way i can access the console to the server?
Wonderful timing! I'm deep in a Feed-the-beast pack! Any advice on how to get one of those fired up nicely via Nix?
Not really sure, never tried it
How can I access the command prompt of the minecraft server?
If you install a regular MC Server you have a prompt to enter commands for the minecraft server. Like /kick or /ban or whatever. How can I do this with this installation?
nix-minecraft allows you to connect to the servers with tmux `tmux -S /run/minecraft/servername.sock`
@@vimjoyer Thanks man. :)
Idk if its a windows to linux issue thing, but i've not figured out how to change my world. What ive done is download my world from my windows machine. stop the server in my nixos machine, replace the world for the other world, start again the server on the nixos machine and i get an error, idk why or how or how to get it solved because the console output is super small and idk if its outputted to a file (I am new to nixos entirely)
okay but what client do i use when i want to play the latests versions on nixos because they all keep crashing for me
prismlauncher, just make sure to get jdk21
@@vimjoyer that worked, thank you so much!
Impressively simple but what about Minetest? (The leading procedural-voxel platform that's actually open-source.)
NixOS also has a built-in module for minetest 👍
The font it Monocraft
how to use nginx to reverse proxy the different servers to different subdomains?
Not sure
This would have been nice to know before I had already set everything up manually with home manager 😭
ok but what if nix minecraft didnt exist? or i want to host a server of a game there arent fancy packages for (forge) ? how would i do that?
nixes approach here seems super limited, on debian i dont need fancy software to run minecraft servers, i just install any files i want and put it in the folders.
You can always just make a custom systemd service with nix options
Would love to see a simmilar video to this, but then for steam dedicated servers. I got stuck in trying to get a palworld server running...
I'm not quite familiar with nixos builtin minecraft module, but I think that nix-minecraft is a better solution, than the one builtin to nixpkgs
Yes, that's why I'm talking about it in this video
just as i was setting up a nix server to host minecraft on an old machine...
damn… now I want to switch to Minecraft font…
It's called monocraft
Btw, is Vimjoyer a Helixlover in reality?
I tried helix once, and it is pretty cool, but it lacks a ton of features I use every day. I primarily use Neovim.
@@vimjoyer oh, I fought it was helix in the video because of colors of nix syntax highlighting. I have similar in my helix, but different in my neovim.
I love helix more because it is a lot simpler and starts up faster. Waiting for scheme plugins!
@@Chandramumta Everything you see in the video is editing, and the code editor is fake too
I have nothing against nix but at this point isnt it easier to just use a docker container?
But where's the fun in that?
@@vimjoyer True that
i kinda love docker + crafty bc of proxy, bots, bulk commands and etc.
now make a setup for terraria
🙏
@vimjoyer pls can u post Skirby dog full video on NixOS next time!!!😭😭😭🙏🙏🙏
gemerald
Men, I think your Ukrainian accent slowly disappears. Keep it going man! Hello from Ukraine)
does it, lol?
@@vimjoyer Maybe I am getting used to it. But still, yes, I think so)
Not supporting Forge servers is a big fail though 🙄
I think they're coming soon
Martinez Richard Moore Michael Clark Matthew
I don't understand why you would do this. Making a Minecraft server is already easy on its own. Why create wrappers that seem unnecessary?
Edit: i know reproducibility and stuff, but you have already Docker and scripts. Why not just use those?
Because this is more fun
@@vimjoyer Understandable, it does look fun, can't argue with that
гооооооооооооооллл
somehow nix manages to overcomplicate basic devops tasks lmfao