nixos-config/machines/jimbo/hardware-configuration.nix

40 lines
1.3 KiB
Nix
Raw Normal View History

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 = [ ];
2022-02-21 22:42:12 +00:00
boot.kernelParams = [ "mem_sleep_default=deep" ]; # Enable real deepsleep suspend
boot.extraModulePackages = [config.boot.kernelPackages.ddcci-driver];
boot.kernelModules = ["kvm-intel" "i2c-dev" "ddcci_backlight"];
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
}