nixos-config/linux/nebula/network.nix

34 lines
745 B
Nix
Raw Normal View History

2023-10-09 10:44:07 -07:00
{ config, ... }:
2023-12-06 21:46:16 -08:00
let hn = config.networking.hostName; in {
2023-10-09 10:44:07 -07:00
networking = {
domain = config.constants.domain;
2023-12-06 21:46:16 -08:00
firewall.trustedInterfaces = [ config.services.tailscale.interfaceName ];
2023-10-09 10:44:07 -07:00
hostId = "e6449321";
networkmanager = {
enable = true;
wifi.backend = "iwd";
};
nftables.enable = true;
tempAddresses = "disabled";
wireless.iwd.enable = true;
};
2023-11-14 20:56:38 -08:00
services = {
openssh = {
enable = true;
hostKeys = [{
comment = "host@${hn}";
path = "/etc/ssh/host";
rounds = 100;
type = "ed25519";
}];
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
2023-10-09 10:44:07 -07:00
};
2023-11-14 20:56:38 -08:00
resolved.enable = true;
2023-10-09 10:44:07 -07:00
};
}