This project is a collection of all my nixOS configurations for multiple hosts and the extensibiltiy of multiple users.
I nuked my home directly at one point, and figured it would be nice be able to start up my server again without having to manually reinstall everything.
This is a collection of services and setup that is run on a private network. The network is only accessible from without my local network, with its own ip range for services.
I use the domain ybmn.no to get a SSL Certificate to secure the traffic (and remove any annyoing browser warnings :) )
This is a collection of services that are exposed to the world. This host runs on an isolated network, with firewall rules that prevent any connections to any other network. It is exclusively internet only. Other services and my "default" home network can connect to it, but it does not know about them itself.
Connections are provided through a wireguard tunnel running on my VPS. Pangolin, gerbil and newt are the engines that control this setup. Which provides a layer of security towards exposing my machine to the world. yesbutmaybe.no is the domain used for public access.
Proxmos is the chosen hyporvisor for running multiple containers on my home server. It currently runs:
- Grafana (LXC)
- Prometheus (LXC)
- Proxmox export for promethues (LXC)
- Private (NixOS VM)
- Public (NixOS VM)
All secrets stored in this repo are encrypted with post-quantum safe algorithmns. That gives me a sense of security for the future when i expose them to the internet in this repo, the way I have. The downside in doing this is that I will have to manage the age private & public keys manually whenever i setup any of the configured machines. I lose the ability to use convenience tools like ssh-to-age key conversion. Which is also one of the reasons I included a proton-pass-cli nix package wrapper in the config. This should give me quicker access to the age secret whenever setting up a new machine.
Rebuilt on the machine itself, from its own checkout of this repo:
sudo nixos-rebuild switch --flake ~/nixos#<host>The containers (ocr, immich, share - every host that imports shared/modules/lxc.nix) are built on my desktop
and pushed over ssh. <ip> is the host's ip in lib/hosts.nix.
NIX_SSHOPTS="-i $HOME/.ssh/desktop -o IdentitiesOnly=yes" \
nixos-rebuild switch --flake path:/mnt/bigboi/dev/nix/nixos#<host> \
--target-host tagp@<ip> --sudo --ask-sudo-password --no-reexecIn fish, put env in front of NIX_SSHOPTS=....
path:builds the working tree as it is, uncommitted changes included.--sudo --ask-sudo-passwordasks for tagp's sudo password on the container, used for the activation step only.
- Uptime Kuma
- Filebrowser
- Homepage
- Portfolios
- Wordpress
- Email server
More to come..
- Write down every manual task done outside of the nixos configuration
- Gigahost DNS Records
- Gigahost API Keys
- Gigahost panel (PTR record for the pangolin VPS)
- Age public key in .sops.yaml (on my machine)
- Install other cool services
- Immich
- Build NAS with backup and data redundancy
- Multiple Disks with RAID
- Off-site backup (external disk)
- Maybe trust the data overloads with a cloud storage backup