aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-06-11 13:57:24 +0530
committerAkshay Nair <phenax5@gmail.com>2025-06-13 15:01:40 +0530
commite6b171f9f1d975ffe34e7a34743b5e92e8593847 (patch)
tree32714bba7679b5ece2ebcf9aeb795caeab13468e /configuration.nix
parent2a73a5899124fa15c3962b9bd385ebd415a0ccf9 (diff)
downloadhomeserver-nixos-config-e6b171f9f1d975ffe34e7a34743b5e92e8593847.tar.gz
homeserver-nixos-config-e6b171f9f1d975ffe34e7a34743b5e92e8593847.zip
Add service router + nsd server
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix21
1 files changed, 19 insertions, 2 deletions
diff --git a/configuration.nix b/configuration.nix
index 45b34ab..048164f 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -2,8 +2,12 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
-{ pkgs, ... }:
-
+{ pkgs, lib, ... }:
+let
+ settings = import ./settings.nix { inherit lib; };
+ ports = settings.network.ports;
+ host = settings.network.host;
+in
{
imports = [
./modules/hardware.nix
@@ -11,8 +15,20 @@
./modules/network
./modules/media
./modules/dashboard
+ ./modules/service-router.service.nix
];
+ services.service-router = {
+ enable = true;
+ routes = {
+ "home.local" = { inherit host; port = ports.dashboard; };
+ "sonarr.local" = { inherit host; port = ports.sonarr; };
+ "radarr.local" = { inherit host; port = ports.radarr; };
+ "prowlarr.local" = { inherit host; port = ports.prowlarr; };
+ "jellyfin.local" = { inherit host; port = ports.jellyfin; };
+ };
+ };
+
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
@@ -21,6 +37,7 @@
neovim
lf
util-linux
+ dig
];
systemd.extraConfig = ''DefaultLimitNOFILE=65536'';