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

36 lines
1.1 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 =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
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-06 22:30:00 +00:00
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b9edb32f-fb40-4d59-8abe-b187c88667d6";
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" =
{ device = "/dev/disk/by-uuid/502E-A0DC";
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
}