add microserver.home host

This commit is contained in:
Jake Hillion 2022-10-22 22:18:32 +01:00
parent 6a71c2af2c
commit c3ff8f1e47
3 changed files with 39 additions and 1 deletions

View File

@ -28,5 +28,16 @@
}
];
};
nixosConfigurations."microserver.home.ts.hillion.co.uk" = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = inputs;
modules = [
./hosts/microserver.home.ts.hillion.co.uk/default.nix
{
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
}
];
};
};
}

View File

@ -0,0 +1,27 @@
{ config, pkgs, lib, ... }:
{
system.stateVersion = "22.05";
networking.hostName = "microserver";
networking.domain = "home.ts.hillion.co.uk";
imports = [
../../modules/common/default.nix
../../modules/secrets/tailscale/microserver.home.ts.hillion.co.uk.nix
];
tailscaleAdvertiseRoutes = "10.64.50.0/24,10.239.19.0/24";
networking.vlans = {
vlan2 = {
id = 2;
interface = "eth0";
};
};
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = true;
};
}

@ -1 +1 @@
Subproject commit f5dd82111a16988796e87b9dc741b2c1eb75b179
Subproject commit f79ce8b5b5eb6e558363ba63f5f31cf7cf023cf1