2022-01-24 21:40:22 +00:00
|
|
|
|
# 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, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2022-02-06 22:30:00 +00:00
|
|
|
|
imports =
|
2022-02-06 23:01:27 +00:00
|
|
|
|
[
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
2022-02-06 22:30:00 +00:00
|
|
|
|
];
|
2022-01-24 21:40:22 +00:00
|
|
|
|
|
2022-02-06 22:30:00 +00:00
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
2022-01-24 21:40:22 +00:00
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
2022-02-21 22:42:12 +00:00
|
|
|
|
boot.kernelParams = [ "mem_sleep_default=deep" ]; # Enable real deepsleep suspend
|
2022-01-24 21:40:22 +00:00
|
|
|
|
|
2022-02-06 22:30:00 +00:00
|
|
|
|
fileSystems."/" =
|
2022-02-06 23:01:27 +00:00
|
|
|
|
{
|
|
|
|
|
device = "/dev/disk/by-uuid/b9edb32f-fb40-4d59-8abe-b187c88667d6";
|
2022-02-06 22:30:00 +00:00
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
2022-01-24 21:40:22 +00:00
|
|
|
|
|
2022-02-06 22:30:00 +00:00
|
|
|
|
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/e2d53876-3fdc-486a-a354-ec834b256e43";
|
2022-01-24 21:40:22 +00:00
|
|
|
|
|
2022-02-06 22:30:00 +00:00
|
|
|
|
fileSystems."/boot/efi" =
|
2022-02-06 23:01:27 +00:00
|
|
|
|
{
|
|
|
|
|
device = "/dev/disk/by-uuid/502E-A0DC";
|
2022-02-06 22:30:00 +00:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
2022-01-24 21:40:22 +00:00
|
|
|
|
|
2022-01-25 00:13:49 +00:00
|
|
|
|
swapDevices = [{
|
2022-02-06 22:30:00 +00:00
|
|
|
|
device = "/dev/disk/by-partuuid/c231f5ef-0f45-4e96-87e9-76ed935e8332";
|
2022-01-25 00:13:49 +00:00
|
|
|
|
randomEncryption = true;
|
|
|
|
|
}];
|
2022-01-24 21:40:22 +00:00
|
|
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2022-02-06 22:30:00 +00:00
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2022-01-24 21:40:22 +00:00
|
|
|
|
}
|