# Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. { config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; fileSystems."/" = { device = "/dev/disk/by-uuid/d9fee0ac-b35f-4d21-9461-3497af72d8bd"; fsType = "ext4"; }; boot.resumeDevice = "/dev/disk/by-uuid/d9fee0ac-b35f-4d21-9461-3497af72d8bd"; fileSystems."/boot" = { device = "/dev/disk/by-uuid/299C-03A0"; fsType = "vfat"; options = [ "fmask=0022" "dmask=0022" ]; }; swapDevices = [ { device = "/.swapfile"; size = 16 * 1024; } ]; services.power-profiles-daemon.enable = true; # Suspend first then hibernate when closing the lid services.logind.settings.Login.LidSwitch = "suspend-then-hibernate"; # Hibernate on power button pressed services.logind.settings.Login.PowerKey = "hibernate"; services.logind.settings.Login.PowerKeyLongPress = "poweroff"; # Suspend first boot.kernelParams = [ "mem_sleep_default=deep" "resume_offset=62050304" ]; # Define time delay for hibernation systemd.sleep.extraConfig = '' HibernateDelaySec=15m SuspendState=mem ''; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }