aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix
new file mode 100644
index 0000000..65b4910
--- /dev/null
+++ b/configuration.nix
@@ -0,0 +1,55 @@
+# 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’).
+
+{ config, pkgs, ... }:
+
+{
+ imports = [
+ ./modules/hardware.nix
+ ./modules/users.nix
+ ./modules/network/default.nix
+ ./modules/media/default.nix
+ ];
+
+ nixpkgs.config.allowUnfree = true;
+
+ environment.systemPackages = with pkgs; [
+ bottom
+ mtm
+ neovim
+ lf
+ util-linux
+ ];
+
+ 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"; }
+ ];
+
+ time.timeZone = "Asia/Kolkata";
+ i18n.defaultLocale = "en_GB.UTF-8";
+
+ # services.logind = {
+ # powerKey = "ignore";
+ # rebootKey = "ignore";
+ # lidSwitch = "ignore";
+ # lidSwitchDocked = "ignore";
+ # lidSwitchExternalPower = "ignore";
+ # hibernateKey = "ignore";
+ # suspendKey = "ignore";
+ # };
+
+ nix.settings = {
+ experimental-features = [ "nix-command" "flakes" ];
+ auto-optimise-store = true;
+ };
+ nix.gc = {
+ automatic = true;
+ dates = "weekly";
+ };
+
+ system.stateVersion = "25.05";
+}