dotfiles/nixos/boxes/yoga/hardware-configuration.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2023-08-13 17:00:41 +01:00
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
2022-08-23 20:23:07 +01:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
2023-01-05 23:00:50 +00:00
# Setup keyfile
2023-08-13 17:00:41 +01:00
boot.initrd.secrets = {"/crypto_keyfile.bin" = null;};
fileSystems."/" = {
device = "/dev/disk/by-uuid/a43a1c42-9166-47dc-9e78-20e0975c75c5";
fsType = "btrfs";
2023-08-13 17:00:41 +01:00
options = ["subvol=@"];
};
2023-08-13 17:00:41 +01:00
boot.initrd.luks.devices."luks-99498047-118a-484a-8c2a-987ca68d4943".device = "/dev/disk/by-uuid/99498047-118a-484a-8c2a-987ca68d4943";
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/F179-A4EA";
fsType = "vfat";
2022-08-23 20:23:07 +01:00
};
2023-08-13 17:00:41 +01:00
swapDevices = [];
2022-08-23 20:23:07 +01:00
networking.useDHCP = lib.mkDefault true;
2023-01-05 23:00:50 +00:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2022-08-23 20:23:07 +01:00
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2023-01-05 23:00:50 +00:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
2022-08-23 20:23:07 +01:00
}