aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-06-08 17:11:30 +0530
committerAkshay Nair <phenax5@gmail.com>2025-06-10 16:18:26 +0530
commit969a9a311d24548c6632ddcdc4f903ffa48c5ca6 (patch)
tree9e508610c3e077647cc39ceb398a8226be8c21d0 /configuration.nix
parent93179e7a79ca08464b9e443df41383b487bda7e8 (diff)
downloadhomeserver-nixos-config-969a9a311d24548c6632ddcdc4f903ffa48c5ca6.tar.gz
homeserver-nixos-config-969a9a311d24548c6632ddcdc4f903ffa48c5ca6.zip
Init commit with shit that does it
Diffstat (limited to '')
-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";
+}