feat: try dns server?
This commit is contained in:
parent
fa6e37de3e
commit
49c5742d58
2 changed files with 21 additions and 0 deletions
|
|
@ -39,6 +39,11 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
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:
|
outputs = { self, nixpkgs, nix-colors, automapaper, disko, hyprland, lazy, ... }@inputs:
|
||||||
|
|
@ -61,6 +66,7 @@
|
||||||
inherit nix-colors;
|
inherit nix-colors;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
inputs.nixos-dns.nixosModules.dns
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
./hosts/server/configuration.nix
|
./hosts/server/configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,21 @@
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "NoasServer"; # Define your hostname.
|
hostName = "NoasServer"; # Define your hostname.
|
||||||
networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
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.
|
# Pick only one of the below networking options.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue