add microserver.home host
This commit is contained in:
parent
6a71c2af2c
commit
c3ff8f1e47
11
flake.nix
11
flake.nix
@ -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;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
27
hosts/microserver.home.ts.hillion.co.uk/default.nix
Normal file
27
hosts/microserver.home.ts.hillion.co.uk/default.nix
Normal 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
|
Loading…
Reference in New Issue
Block a user