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

46 lines
1.2 KiB
Nix
Raw Normal View History

2022-08-23 20:23:07 +01:00
{
2022-12-19 09:09:08 +00:00
config,
lib,
pkgs,
modulesPath,
...
}: {
2023-01-05 23:20:41 +00:00
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2022-12-19 09:09:08 +00:00
2023-01-05 23:00:50 +00:00
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
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
2022-08-23 20:23:07 +01:00
};
2023-01-05 23:00:50 +00:00
fileSystems."/" =
{ device = "/dev/disk/by-uuid/a43a1c42-9166-47dc-9e78-20e0975c75c5";
fsType = "btrfs";
options = [ "subvol=@" ];
};
2022-08-23 20:23:07 +01:00
2023-01-05 23:00:50 +00:00
boot.initrd.luks.devices."luks-99498047-118a-484a-8c2a-987ca68d4943".device = "/dev/disk/by-uuid/99498047-118a-484a-8c2a-987ca68d4943";
2022-08-23 20:23:07 +01:00
2023-01-05 23:00:50 +00:00
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/F179-A4EA";
fsType = "vfat";
};
2022-08-23 20:23:07 +01:00
2023-01-05 23:00:50 +00: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
}