From b8a27f63ed54ebb8e18cfe6dbb80b4114b81e6ba Mon Sep 17 00:00:00 2001 From: tdpeuter Date: Wed, 14 Jun 2023 17:17:06 +0200 Subject: [PATCH] No sleep on lid close, fix slow boot --- nixos/hosts/Tibo-NixFat/default.nix | 2 ++ nixos/hosts/Tibo-NixFat/hardware-configuration.nix | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/nixos/hosts/Tibo-NixFat/default.nix b/nixos/hosts/Tibo-NixFat/default.nix index bf8123b..c48816f 100644 --- a/nixos/hosts/Tibo-NixFat/default.nix +++ b/nixos/hosts/Tibo-NixFat/default.nix @@ -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; diff --git a/nixos/hosts/Tibo-NixFat/hardware-configuration.nix b/nixos/hosts/Tibo-NixFat/hardware-configuration.nix index 2bcd17a..d2ef044 100644 --- a/nixos/hosts/Tibo-NixFat/hardware-configuration.nix +++ b/nixos/hosts/Tibo-NixFat/hardware-configuration.nix @@ -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