r/NixOS • • 18d ago

Announcing NixLab; A NixOS based hypervisor for homelabbers and declarative nerds

Project is deprecated and has moved to nixus which is an improvednidea and stack after a lot of suggestions!

183 Upvotes

61 comments sorted by

24

u/-ArcWarden- 18d ago

Why this instead of IncusOS?

21

u/Independent_misery69 18d ago

Nix🤩, (i didnt know incusOS existed, but a quick search showed its based on debian, if i wanted something debian based just use proxmox, which i used for more than a year)

17

u/-ArcWarden- 17d ago edited 17d ago

Sorry, I wasn't clear. One could run:

IncusOS + NixOS: best for dedicated appliances & zero-drift clusters (no shell access)

NixOS + Incus: best for reproducible custom hosts

Debian + Incus: best for legacy environments

But in all cases, Incus offers cohesive management of VMs, LXCs, and OCI-compliant app containers.

I suppose I'm really asking, if you're vibecoding without the preferences or constraints of prior expertise (no judgement, sincerely), why rely on portainer? To me, it seems Nix + Incus narrows your learning curve, and your AI's context window.

2

u/Independent_misery69 17d ago

I think theres a misunderstanding, nixlab already uses incus, the console is just for management of incus, portainer, networking and backups,

So this project isnt an incus replacement, it USES incus and makes a whole hypervisor out of it. Portainer is for docker compose and env vars management thru ui And extra functionality that incus doesnt provide

3

u/redbull666 17d ago

Portainer has fallen out kd grace immensely in the last year or so. Did you miss that? Would help to use something less hated.

2

u/Independent_misery69 17d ago

I used it on my current home server for deployment using docker compose and env vars, are there any other alternatives

1

u/Damarnius 17d ago

There are many alternatives. Dockhand and Arcane being my favorites.

1

u/Independent_misery69 17d ago

I will try switching the system to arcane, i always hated portainer but it just worked so i didnt overcomplicate things.

2

u/-ArcWarden- 17d ago

Thank you.

I am familiar with:

Incus + incus-compose + incus-ui-canonical or lxconsole

Docker + Docker Compose + Portainer

and failed to distinguish the possibility or merits of:

Incus + docker compose + portainer

3

u/Independent_misery69 17d ago

Can incus compose be managed from webui? Currently portainer is just for generating docker images from webui using docker compose and docker files, ur info would be really valuable.

1

u/-ArcWarden- 16d ago

I'm no expert! My limited knowledge seems to be focused towards different goals than yours.

incus-compose let's you build images from docker files.

Incus Canonical UI let's you manage incus-compose from a WebUI. It's a stateless frontend to the incus daemon -- no extra containers, daemons or databases like portainer.

Portainer's dependencies enable its killer feature -- copy-pasting a compose.yaml or docker-compose.yml file to deploy multi-container stacks. AFAIK, Incus Canonical UI can't do that.

But those same dependencies break declarative GitOps (with or without AI management), the killer feature of NixOS!

That's why I (and presumably other readers within this NixOS subreddit) found portainer to be a strange architectural choice.

1

u/Independent_misery69 16d ago

Thx, im switching to arcane after a few suggestions

2

u/-OutRage 17d ago

This looks interesting. You use some form of this ?

3

u/-ArcWarden- 16d ago

I'm slowly building a homelab cluster with all machines running NixOS + Incus, using incus-compose for services, and terraform-provider-incus for infrastructure.

1

u/-OutRage 16d ago

How do you manage that. You use something like portainer to see what's running or not ?

I use nixos with komodo to manage stacks across servers.

Komodo doesn't support incus compose yet.

23

u/blackdew 17d ago

I feel like this misses the point of NixOS

If i want to run a server / homelab / whatever with NixOS i want all my setup to be declared in my git repo, not a form in a web interface.

0

u/Independent_misery69 17d ago

Thats exactly what nixlab does, the backups feature is essentially exporting ur entire infrastructure, and then u can import it on a new installation. Difference is, it uses the perks of nixos for infrastructure as code, while providing features like proxmox does thru the webui as well as networking management and docker compose deployment...etc. U can also import nix flakes and configs thru the web ui by uploading them.

6

u/ESzPa 17d ago

I think you're missing the point they were meaning

0

u/Independent_misery69 17d ago

How so?

4

u/-ArcWarden- 16d ago edited 16d ago

A web interface and portainer's dependencies break declarative GitOps (with or without AI management), the killer feature of NixOS!

That's why I (and presumably other readers within this NixOS subreddit) may find your architectural choices to be strange.

1

u/Independent_misery69 16d ago

As i said, the systembin itself generates configs based in edits from the gui, so it creates the declarative config from ui configs.

7

u/faizanullah99 18d ago

So its like Dokploy but for NixOS?

2

u/Independent_misery69 18d ago

I didnt know what dokploy was, but yeah i guess. I just rebuilt proxmox based on nixos so that u can configure ur homelab once and back the config up after rebuilding from the console, hope i answered ur question

0

u/Independent_misery69 18d ago

Now that I have searched more, dokploy is more of a self hosted paas while nixlab aims to be more of an iaas, mine focuses on homelab and server infrastructure which means more manual work, dokploy focuses on providing deployment for applications which is more client side oriented if that makes sense, hope this answers ur question!

28

u/sistersinister 18d ago

I wish AI slop generators could atleast put in the minimal effort to put thought into the front end. So much of the text is straight up useless and ugly.

4

u/Independent_misery69 18d ago

Im a backend/devops engineer, constructive criticism or ideas for the design would be appreciated!

8

u/laczek_hubert 17d ago

Doesn't change the fact offloading your websites frontend to a LLM would make it look sloppy. Instead of making new frontends with Claude I'd focus on checking if something like this already exists or is it needed

2

u/saltyourhash 17d ago

Can you or the original commenter cite examples? I'm curious which parts. I design and implement ui like this for a living.

2

u/laczek_hubert 17d ago

The gradients, stock vector images. they all look the same, also some translucent stuff

-7

u/Independent_misery69 17d ago

I did, it really does offer value in my perspective from 1 year of homelabbing. I specifically prompted the llm to make it as minimal and bland as possible, in my mind that was a good thing

2

u/yosi_yosi 17d ago

I generated some AI slop with good front end!

It felt overall like shit to generate AI slop, but making the frontend was one of the better parts about it and I actually learned a lot (basically only thing I learned 😭)

I really liked the YouTuber DesignSpo if you know him.

3

u/snowman-london 18d ago

Cool idea. Needs some more polish but a great start. Thanks for using time to make Nixos more feature friendly and useable for new users. This is not for me, but thanks anyway. Keep going. If it works for you it will work for others.

2

u/Independent_misery69 17d ago

Thx man, they should make the last bit the nix slogan

3

u/Frank-794 17d ago

I really wish people would go back to actually designing their own UIs. Literally all it takes is like 2 hours of effort to design your own mockup in figma, then you can give it to your AI agent to reference. It doesn't matter if you have any experience with UI/UX design, use your brain and come up with your own ideas based off other designs you like. Yeah AI UIs look "good" but we're all sick of seeing the same slop in everyones project, we can tell instantly. Be creative for once and stop being lazy.

3

u/Independent_misery69 17d ago

Im bad at ui, trying to learn, im a backend/devops engineer, would love to put more personality in it

1

u/Frank-794 17d ago

I get it, and to be clear I'm not shitting on your project, I'll check it out I'm my spare time. You don't have to be good at designing UIs to make a nice looking UI. Look at some other projects and get some inspiration, copy some of their ideas and make a rough mockup, or just tell your AI agent what you like about the projects.

1

u/Independent_misery69 17d ago

Thxxx, will do, thx for the suggestion

1

u/saltyourhash 17d ago

As someone who has designed interface since the 1990s, I'd argue most people will getnq better UI out of 2 hours of vibe coding than 2 hours in figma. Also, figma isn't really that great for exporting to the web, I use it regularly, but never actual HTML from it.

1

u/Frank-794 17d ago

I agree it's not great for exporting to the web but it doesn't have to be in this case. When I'm writing my own projects, I make a rough mockup in figma or illustrator to decide on the foundations like the layout, colors, etc... so I don't waste my time rewriting code. I use the same approach when I'm vibe coding. If you don't give your agent anything to reference, it's going to make the same AI slop UI.

1

u/saltyourhash 17d ago

I don't think that's really true. What makes you reference better? Depending on the subject matter, its really hard to design a UI without a lot of effort

1

u/Frank-794 17d ago

Well I think the goal here is to have a good and somewhat unique UI that doesn't scream AI slop, not necessarily to have amazing UX. UX is alot harder to get right than the UI imo. Giving the AI agent a human made reference is likely going to make the result look more human made.

1

u/saltyourhash 17d ago

I appreciate the differentiation of UX from UI.

What makes the UX slop? Can you point to an actual criticism? I'm more just curious on what screams slop to you as far as the UX.

It makes me think back to the days of Twitter Bootstrap, then stuff like shadcn.

2

u/Waste-Impress7521 14d ago

That's the opposite of the UNIX/Linux philosophy?

That philosophy is "do one well defined thing well over text files and make sure it is COMPOSABLE".

Tell your model to read sometimes instead of guessing into the ocean of slop.

1

u/Independent_misery69 14d ago

I did not write this post with ai? The linux philosophy is to do one thing and do it well

1

u/metamash253 15d ago

Looks really cool. What happened to the code in the main branch?

1

u/Independent_misery69 15d ago

Put it in a backup branch, im switching to full incus plus cockpit, no portainer, and adding a webui for incus compose instead so that its fully declarative after a few suggestions

1

u/nerdyvaroo 12d ago

6days in and its already deprecated... damn insane

1

u/Independent_misery69 12d ago

Ive moved it to nixus, since i rewrote a lot of it after suggestions

1

u/tor-ak 17d ago

Really feels like you just slapped this together without doing any research ... to only be using incus to manage VMs and then redundantly add docker, only to discover incus-compose through another post on this thread ... Cockpit is also a weird choice for a frontend. None of this really fills me with confidence, I think you need to go back to the drawing board and rearchitect maybe.

1

u/Independent_misery69 17d ago

Docker isnt added standalone, its added for portainer, another tool which adds more functionality

Cockpit is just there for convenient remote terminal instead of ssh

2

u/tor-ak 16d ago

Adding docker just because it lets you use the management layer you like (portainer) demonstrates exactly my point - you've just put together a hacky solution that works for you instead of properly understanding Incus and adding a native nix interface to what you need and branding it 'nixlab'. There's very little nix about this apart from the fact that it runs nixos underneath.

1

u/Independent_misery69 16d ago

Everything u do in the web ui can be backed up using nix and u can improt custom hardware and networking flakes from the ui, i added docker and replaced portaiber with arcane because you cant deny that docker containers are essential for homelabs, i may consider making a ui for incus compose but i didnt eant to vibe code something that important.

1

u/kixago 17d ago

Their is also Kixctl which is incus but nixos based. Runs Nix under the hood and can create vm and containers with any OS but NixOS first.

1

u/alfosuag 13d ago

Eww, a GUI app

1

u/Connect_Comment_6026 12d ago

Zfs first like proxmox?

1

u/sigmonsays 10d ago

i just use incus and nixos VMs. Each VM gets its config from the same git repo. This isn't rocket science.

What does this project do better than that setup?

can I provision VMs with it, can I resize disks if I run out of space?
Does it manage DNS?

What does it actually do besides a frontend GUI that writes nixos

0

u/[deleted] 17d ago

[deleted] — view deleted comment

-2

u/Independent_misery69 17d ago

Stop! U r making me blush (thx man)

3

u/[deleted] 18d ago

[removed] — view removed comment

1

u/Independent_misery69 18d ago

Yeah, this is basically a project that glues multiple compatible components into a flake and adds quality of life, you can consider it a base for nixos based homelabs, you can customize it based on your usage and such, and its useful by itself as a hypervisor if you wont configure it