nixos/hosts/microserver.parents.ts.hillion.co.uk/default.nix
Jake Hillion 09d031a4cf
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
rpi: fix boot failures on rpi
2023-01-11 20:11:45 +00:00

27 lines
739 B
Nix

{ config, pkgs, lib, ... }:
{
config.system.stateVersion = "22.05";
config.networking.hostName = "microserver";
config.networking.domain = "parents.ts.hillion.co.uk";
imports = [
./hardware-configuration.nix
../../modules/common/default.nix
../../modules/rpi/rpi4.nix
];
# Networking
## Tailscale
config.tailscaleAdvertiseRoutes = "10.10.0.0/24";
config.age.secrets."tailscale/microserver.parents.ts.hillion.co.uk".file = ../../secrets/tailscale/microserver.parents.ts.hillion.co.uk.age;
config.tailscalePreAuth = config.age.secrets."tailscale/microserver.parents.ts.hillion.co.uk".path;
## Enable IP forwarding for Tailscale
config.boot.kernel.sysctl = {
"net.ipv4.ip_forward" = true;
};
}