refactor: optimize flake.nix and modularize networking config

Cleaner deploy.nodes generation, improved devShell experience, and centralized host IP definitions.
This commit is contained in:
Tibo De Peuter 2026-03-17 18:24:17 +01:00
parent 5a031b48ed
commit 8fb651fd60
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
15 changed files with 290 additions and 51 deletions

View file

@ -3,8 +3,10 @@
{
config = {
homelab = {
networking.hostIp = "192.168.0.94";
apps.jellyfin.enable = true;
virtualisation.guest.enable = true;
users.deploy.enable = true;
};
networking = {
@ -28,7 +30,7 @@
interfaces.ens18 = {
ipv4.addresses = [
{
address = "192.168.0.94";
address = config.homelab.networking.hostIp;
prefixLength = 24;
}
];