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