2022-08-25 12:21:35 -06:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules =
|
2022-09-07 10:06:49 -06:00
|
|
|
[ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
2022-08-25 12:21:35 -06:00
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
2023-01-07 06:19:22 -07:00
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-uuid/4b758b9b-4c75-4658-9649-64a2ceba2a0b";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
"/run/media/qbit/backup" = {
|
|
|
|
device = "/dev/disk/by-uuid/6e71eeea-6437-46f4-88d0-126c92af42ef";
|
|
|
|
fsType = "ext4";
|
|
|
|
label = "backup";
|
|
|
|
neededForBoot = false;
|
|
|
|
};
|
2022-08-25 12:21:35 -06:00
|
|
|
};
|
|
|
|
|
2022-09-07 10:06:49 -06:00
|
|
|
boot.initrd.luks.devices."luks-1f16b568-7726-44b6-b082-6b9d5e4d1972".device =
|
|
|
|
"/dev/disk/by-uuid/1f16b568-7726-44b6-b082-6b9d5e4d1972";
|
2022-11-16 20:25:14 -07:00
|
|
|
boot.initrd.luks.devices."luks-1f16b568-7726-44b6-b082-6b9d5e4d1972".crypttabExtraOpts =
|
|
|
|
[ "fido2-device=auto" ];
|
2022-08-25 12:21:35 -06:00
|
|
|
|
2022-09-07 10:06:49 -06:00
|
|
|
fileSystems."/boot/efi" = {
|
|
|
|
device = "/dev/disk/by-uuid/F0A2-4A56";
|
2022-08-25 12:21:35 -06:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
2022-09-07 10:23:45 -06:00
|
|
|
swapDevices = [{ device = "/dev/disk/by-label/swap"; }];
|
2022-08-25 12:21:35 -06:00
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
hardware = {
|
2022-09-07 10:06:49 -06:00
|
|
|
cpu.intel.updateMicrocode =
|
|
|
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
video.hidpi.enable = lib.mkDefault true;
|
2022-08-25 12:21:35 -06:00
|
|
|
bluetooth.enable = true;
|
|
|
|
};
|
|
|
|
}
|