infrastructure/nixos/hosts/olympus/dns/configuration.nix

25 lines
822 B
Nix
Raw Normal View History

2022-09-27 14:25:09 +02:00
{ config, pkgs, ... }:
{
2021-11-21 19:30:19 +01:00
imports = [ ];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment?
# Additional packages
2021-11-21 21:56:17 +01:00
environment.systemPackages = with pkgs; [ dig dog drill ];
2021-11-21 19:30:19 +01:00
networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];
2022-09-27 14:25:09 +02:00
services.v.dns = {
2021-11-21 19:30:19 +01:00
enable = true;
2022-09-27 14:25:09 +02:00
openFirewall = true;
mode = "server";
2021-11-21 19:30:19 +01:00
};
}