Compare commits

...

2 commits

Author SHA1 Message Date
fruchti d6f2c33a09 X270: Try to fix nub wakeup issue 2023-12-02 20:34:42 +01:00
fruchti 7d14f4a8df Disco: Add swap file, earlyoom 2023-12-02 20:34:17 +01:00
2 changed files with 21 additions and 0 deletions

View file

@ -172,6 +172,16 @@
LidSwitchIgnoreInhibited = no LidSwitchIgnoreInhibited = no
''; '';
services.earlyoom = {
enable = true;
enableNotifications = true;
};
swapDevices = [{
device = "/swapfile";
size = 16 * 1024;
}];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave

View file

@ -6,6 +6,17 @@
speed = 170; speed = 170;
}; };
# Ensure that trackpoint mouse buttons work after suspend without having
# to touch the trackpoint first
powerManagement = {
powerDownCommands = ''
modprobe -r psmouse
'';
resumeCommands = ''
modprobe psmouse
'';
};
services.xserver.videoDrivers = [ "modesetting" ]; services.xserver.videoDrivers = [ "modesetting" ];
boot.initrd.kernelModules = [ "i915" ]; boot.initrd.kernelModules = [ "i915" ];