From fb3c68a676643e60e396daf4076684e12d157677 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 13 Jun 2025 15:02:58 +0530 Subject: Syncthing + service router refactor --- configuration.nix | 38 ++++++++++---------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) (limited to 'configuration.nix') diff --git a/configuration.nix b/configuration.nix index 048164f..ca5aaf8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,13 +1,4 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). - -{ pkgs, lib, ... }: -let - settings = import ./settings.nix { inherit lib; }; - ports = settings.network.ports; - host = settings.network.host; -in +{ pkgs, ... }: { imports = [ ./modules/hardware.nix @@ -15,20 +6,9 @@ in ./modules/network ./modules/media ./modules/dashboard - ./modules/service-router.service.nix + ./modules/storage ]; - 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; [ @@ -38,15 +18,17 @@ in lf util-linux dig - ]; - systemd.extraConfig = ''DefaultLimitNOFILE=65536''; - systemd.user.extraConfig = ''DefaultLimitNOFILE=65536''; - boot.kernel.sysctl."fs.inotify.max_user_instances" = 8192; - security.pam.loginLimits = [ - { domain = "*"; type = "-"; item = "nofile"; value = "65536"; } + # Mom mode + st + ungoogled-chromium ]; + # Mom mode + services.xserver.enable = true; + services.xserver.windowManager.dwm.enable = true; + services.xserver.displayManager.startx.enable = true; + time.timeZone = "Asia/Kolkata"; i18n.defaultLocale = "en_GB.UTF-8"; -- cgit v1.3.1