diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-06-13 15:02:58 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-06-13 15:02:58 +0530 |
| commit | fb3c68a676643e60e396daf4076684e12d157677 (patch) | |
| tree | 16a6ee14a9d745079e99a066ad30efda1f947e72 /configuration.nix | |
| parent | e6b171f9f1d975ffe34e7a34743b5e92e8593847 (diff) | |
| download | homeserver-nixos-config-fb3c68a676643e60e396daf4076684e12d157677.tar.gz homeserver-nixos-config-fb3c68a676643e60e396daf4076684e12d157677.zip | |
Syncthing + service router refactor
Diffstat (limited to 'configuration.nix')
| -rw-r--r-- | configuration.nix | 38 |
1 files changed, 10 insertions, 28 deletions
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"; |
