feat: try dns server?

This commit is contained in:
Noa Aarts 2024-08-28 17:03:51 +02:00
parent fa6e37de3e
commit 49c5742d58
Signed by: noa
GPG key ID: 1850932741EFF672
2 changed files with 21 additions and 0 deletions

View file

@ -39,6 +39,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-dns = {
url = "github:Janik-Haag/nixos-dns";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nix-colors, automapaper, disko, hyprland, lazy, ... }@inputs:
@ -61,6 +66,7 @@
inherit nix-colors;
};
modules = [
inputs.nixos-dns.nixosModules.dns
disko.nixosModules.disko
./hosts/server/configuration.nix
inputs.home-manager.nixosModules.default

View file

@ -24,6 +24,21 @@
networking = {
hostName = "NoasServer"; # Define your hostname.
networkmanager.enable = true; # Easiest to use and most distros use this by default.
domains = {
enable = true;
baseDomains = {
"itepastra.nl" = {
a.data = "192.168.42.2";
};
"noa.voorwaarts.nl" = {
a.data = "192.168.42.2";
};
};
subDomains = {
"itepastra.nl" = { };
"noa.voorwaarts.nl" = { };
};
};
};
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.