No sleep on lid close, fix slow boot

This commit is contained in:
Tibo De Peuter 2023-06-14 17:17:06 +02:00 committed by Tibo De Peuter
parent 48b00af4ec
commit b8a27f63ed
2 changed files with 8 additions and 6 deletions

View file

@ -68,6 +68,8 @@
# no need to redefine it in your config for now)
#media-session.enable = true;
};
services.logind.lidSwitch = "ignore";
# Enable Bluetooth.
hardware.bluetooth.enable = true;

View file

@ -4,9 +4,9 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
@ -25,9 +25,9 @@
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-label/SWAP"; }
];
# swapDevices =
# [ { device = "/dev/disk/by-label/SWAP"; }
# ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's