aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-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'';