From f5d51dba7341eadf04749f6a9703f83a5cde4390 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 10 Nov 2025 12:22:55 +0530 Subject: Update + add books module disabled --- modules/hardware/default.nix | 16 ++++++++-------- modules/hardware/fs.nix | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'modules/hardware') diff --git a/modules/hardware/default.nix b/modules/hardware/default.nix index 34b7e7e..cff3cd2 100644 --- a/modules/hardware/default.nix +++ b/modules/hardware/default.nix @@ -26,14 +26,14 @@ cpuFreqGovernor = "powersave"; }; services.acpid.enable = true; - services.logind = { - powerKey = "ignore"; - rebootKey = "ignore"; - lidSwitch = "ignore"; - lidSwitchDocked = "ignore"; - lidSwitchExternalPower = "ignore"; - hibernateKey = "ignore"; - suspendKey = "ignore"; + services.logind.settings.Login = { + HandlePowerKey = "ignore"; + HandleRebootKey = "ignore"; + HandleLidSwitch = "ignore"; + HandleLidSwitchDocked = "ignore"; + HandleLidSwitchExternalPower = "ignore"; + HandleHibernateKey = "ignore"; + HandleSuspendKey = "ignore"; }; # Bootloader diff --git a/modules/hardware/fs.nix b/modules/hardware/fs.nix index aaf67d6..6760433 100644 --- a/modules/hardware/fs.nix +++ b/modules/hardware/fs.nix @@ -18,8 +18,8 @@ swapDevices = [{ device = "/dev/disk/by-label/swap"; }]; # Set high limits for file watching/file handles - systemd.extraConfig = ''DefaultLimitNOFILE=65536''; - systemd.user.extraConfig = ''DefaultLimitNOFILE=65536''; + # 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"; } -- cgit v1.3.1