From 49c5742d5865fb7b864076c47a26a58dc5c7215d Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Wed, 28 Aug 2024 17:03:51 +0200 Subject: [PATCH] feat: try dns server? --- flake.nix | 6 ++++++ hosts/server/configuration.nix | 15 +++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/flake.nix b/flake.nix index cb7ccb6..48821ea 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 52fbade..bd972e5 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -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.