aboutsummaryrefslogtreecommitdiff
path: root/modules/hardware
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-11-10 12:22:55 +0530
committerAkshay Nair <phenax5@gmail.com>2025-11-10 12:22:55 +0530
commitf5d51dba7341eadf04749f6a9703f83a5cde4390 (patch)
tree6c6315a6b7bc7fe324c2c270e1fc31d4037f2a11 /modules/hardware
parent2512c45176739a5776569ce84f1c6ecd3e46c93a (diff)
downloadhomeserver-nixos-config-f5d51dba7341eadf04749f6a9703f83a5cde4390.tar.gz
homeserver-nixos-config-f5d51dba7341eadf04749f6a9703f83a5cde4390.zip
Update + add books module disabled
Diffstat (limited to 'modules/hardware')
-rw-r--r--modules/hardware/default.nix16
-rw-r--r--modules/hardware/fs.nix4
2 files changed, 10 insertions, 10 deletions
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"; }