/blog/personal_home_network


Taking Control: My corporate-ish home network.


How far can self-hosting really go?


Continuing...

In my first blog, I talked about how, why and when you should self-host your mail (check it out here). TL;DR: it was primarily to take back control of my tech, and with the kind of security/privacy paranoia that I have, it obviously wasn't gonna stop there. Email was just the first step, and since then my setup has been upgraded quite a bit.

Along the way, I have stumbled upon a new hobby: homelabbing. For those of you who don't know, it's just creating your own small IT laboratory to learn, build, break, troubleshoot, and understand how real IT infrastructure works. Now I am always trying out new tools and services that I can self-host and integrate into my life.

In this blog, I will go over the apps and services that I have self-hosted, and why and how I use them daily.


The New Setup

So in this new setup, my goal was to self-host the daily-use apps that you generally get with the Google/Microsoft suite, such as Calendar, Contacts, Photos, Drive, etc. Also, now this was not just gonna be for my personal use. I was going to add my family to this setup as well, so it had to be easy to use for a non-techie.

Here are some of the rules/principles that I followed while choosing the apps/services:

  • Every app should do one thing and one thing only. A drive service should not have tasks and notes integrated into it, a note-taking app should not have a built-in password manager, and so on. This rules out the most common all-in-one self-hosted cloud, Nextcloud, even though it's a great tool.
  • Local apps over self-hosted ones. I would genuinely prefer a good local app over self-hosting one, as I can just sync the files across my devices through the drive. For example, even though there are pretty great open-source password managers out there that you can self-host, I prefer the good old KeePass. Its database file can be synced to all my devices through my storage service, and I can just install KeePass-compatible clients on my devices, like KeePassXC on desktop and KeePassDX on Android. Just don't edit it on two devices before they sync, or you end up with conflicting copies. Similarly, I use Obsidian for notes; it is probably the best note-taking app. I can again sync all the files with my storage service and access my notes/tasks everywhere.
  • All services should have native desktop/mobile apps. I can still make do with a web app on desktop, but mobile apps are crucial.
  • All the services should have SSO. As I said earlier, my family is also gonna use these services, and btw, they have a long history of bad password management. I am also going to deploy an identity provider, through which I can manage users and access to apps. So now adding and removing people is done from just one admin panel, instead of 10 different admin panels.
  • Finally, I only wanted FOSS apps and services. The primary reason for all this is to get back control, and in my view, open-source apps are the perfect fit for it.


Apps

Here is a list of the apps in my current setup:

  • Stalwart for mail, calendar and contacts. I have switched to a new service for mail, calendar and contacts. I know I said one app should do one thing and one thing only, and here it's doing three, but this particular app can be considered an exception: these three are generally linked together, so it's better to choose an option that has all three in one.
  • Headscale for VPN. As most of these services are hosted on my home lab, in my home network, I want to access them outside the home network as well, so I am using a VPN for it. Also, I wouldn't wanna expose my private data and self-hosted apps to the public internet, so it also keeps these apps out of bad actors' reach while still giving me the convenience of accessing my services anywhere. Headscale itself is open source, but the apps you connect with are Tailscale's official clients, and some of those (on Windows, macOS and iOS) aren't fully open source, so that's another small exception.
  • Authentik as an IdP. As I said earlier, managing the logins and users for so many apps is a hassle for me, so I am also using an identity provider, which can be my single source of truth for the users in the system. It also works as an SSO provider, so I don't have to remember logins for 10 different apps; everything works with the Authentik login. The only catch is mail: mail and calendar apps generally still sign in to Stalwart with an app password instead of SSO.
  • Immich as a photo library. This is the single best tool that I have used in a long time; it's just like Google Photos, but private. For the past ~4 years (since I gave up my Google account), I have been backing up my gallery on random hard drives and pen drives. In a moment of need, I knew I had the photos somewhere, but wouldn't know where or on which pen drive. This tool solves that. It even has all the necessary features, such as duplicate detection, face detection/recognition so you can filter images by people, album sharing, a PIN-protected locked folder and many more.
  • GoToSocial as an internal social network. This might sound stupid, but I also self-host my own social media. It's just a basic, extremely lightweight, Twitter-like platform where my family and I can send daily updates, such as a random click from my trip, a photo that popped up in the image gallery memories (4 years ago today) or random photos from the day, like a photo of the dog in a funny pose. Like everyone, we used a WhatsApp group for this, but this personal social media concept sounded a lot cooler to me. Also, I believe photos get lost in a WhatsApp chat; here, you can just scroll and see the memories. It doesn't have an official mobile app, but it works with Mastodon-compatible apps, so that's what we use on our phones.
  • OpenCloud as a drive. This is just basic file sync and share software: you can back up files, share them, manage them, etc. etc.
  • Local Apps such as KeePass for passwords, Obsidian for notes and LibreOffice for office apps. With these apps, as I said earlier, I can just back up the local files through the drive and use them anywhere I want with the platform-specific apps. Obsidian is another exception here, as it isn't FOSS, but it is arguably the best note-taking app, it doesn't bug you with "Buy Premium" ads, and it stores your notes as plain Markdown text files, so you are never locked in.

How and Where

Most of this setup runs at my home on a bunch of old laptops, and some of it runs on my own VPSs in the cloud: the services that have to be reachable from the internet, like mail and the Headscale server itself. The laptops at home need to be running 24/7, so they are also connected to a small UPS. And since old laptops won't last forever, everything important (photos, files, mail and configs) is backed up automatically, with a copy kept off-site, so a dead laptop is an inconvenience, not a disaster. The setup does come with a cost, as I had to rent more VPSs for additional stuff. The laptops running 24/7 at home also add to the cost; I haven't calculated it, though. If you are planning to do the same, the extra VPS cost is completely optional, as it is just for the public services. If you'd rather set it up just for use on your home network, you don't need the extra public VPS for your public services.


Issues I Faced

This setup comes with its own shortcomings; after all, I am a single person managing a small corporate-like infra, and that too from home. The other day, I wanted a photo from my Immich gallery when I was out of town and, lucky me, the Immich server was not connected to the VPN for some reason, so I couldn't get it. I never found the exact cause, but the fix was making the VPN start and reconnect automatically on every machine, and setting up Uptime Kuma to alert me on my phone the moment any service goes offline, so now I find out before I actually need something. Another time, when we were switching our ISP (moving to a new Wi-Fi provider), it took about 3-4 days, and in that time, all the services were down (remotely). To avoid that, the home lab now has a backup mobile data connection that takes over automatically if the main internet goes down. So self-hosting does come with its share of issues and problems, compared to just using services from a big-tech provider. It all comes down to control over your data, and I would put up with these small inconveniences to get back control over my data and services any day.


A Common Pattern

This essentially becomes a small, personal, corporate-ish network, with all the same components that big corporate networks use. It's the same building blocks, just at a different scale. For a business, you'd build it for higher stakes: proper servers instead of old laptops, redundancy, monitoring and tested backups.

My Home Setup What Companies Call It
Authentik Entra ID / Okta
Headscale Corporate VPN / Palo Alto's GlobalProtect'
Stalwart Exchange / Google Workspace Mail
OpenCloud Google Drive / SharePoint / OneDrive
GoToSocial Viva Engage

And we are seeing this shift in companies and governments more prominently than ever. Organisations are now moving towards IT and data sovereignty, and for the same reason as mine: more control over data. In recent years, we have seen major developments in the EU. The EU Data Act, which started applying in September 2025, makes it easier for companies to switch cloud providers and to access the data their own devices generate. Countries are acting on it too. Denmark's Ministry of Digital Affairs has started moving away from Microsoft. In France, the Gendarmerie has been running its own Ubuntu-based Linux on most of its computers since 2008, the city of Lyon announced a move to open-source software in 2025, and the government has built an open-source office suite for its civil servants, La Suite numérique. In Germany, the state of Schleswig-Holstein is moving its administration to LibreOffice, with Linux next, and at the federal level, Germany is backing openDesk, an open-source workplace suite, all to reduce dependency on foreign IT giants. India too has developed its in-house payment infra with RuPay and UPI, and with the DPDP Act 2023, it now has its own law on how personal data must be collected, stored and used. This is to be expected in a world where AI is growing day by day, with data at the centre of it all. Organisations will have to think about how and where their data is being used.


The Verdict

The final question: should you also build a similar setup and self-host whatever is possible? It depends, obviously. Are you willing to give up some conveniences and features to control your own data? Are you willing to pay a little extra for the services you now get for free? Do you actually care about how and where your data is being used? If yes, then this is for you.

Apart from the control and sovereignty aspects, this exercise also gave me countless insights into how exactly these huge infrastructures are designed and managed. Even if you don't want a network like this, it could still be a great learning experience.


Tags: | self-hosting | homelab | digital sovereignty | data privacy | open source | FOSS | identity provider | single sign-on | Authentik | Headscale | Immich | Stalwart | GoToSocial | OpenCloud | Google alternatives |