48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
|
{ config, lib, modulesPath, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
imports = [
|
||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||
|
];
|
||
|
|
||
|
boot = {
|
||
|
kernelModules = [ "kvm-intel" ];
|
||
|
loader = {
|
||
|
grub.enable = false;
|
||
|
systemd-boot.enable = true;
|
||
|
efi.canTouchEfiVariables = true;
|
||
|
};
|
||
|
initrd = {
|
||
|
availableKernelModules = [ "aesni_intel" "ahci" "ehci_pci" "rtsx_pci_sdmmc" "sd_mod" "usb_storage" "usbhid" "xhci_pci" ];
|
||
|
kernelModules = [ "dm-snapshot" ];
|
||
|
luks.devices = {
|
||
|
root = {
|
||
|
name = "root";
|
||
|
device = "/dev/disk/by-uuid/7f0adc46-ef4f-44cc-a277-c4d886bb1ec7";
|
||
|
preLVM = true;
|
||
|
allowDiscards = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
fileSystems = {
|
||
|
"/" = {
|
||
|
device = "/dev/disk/by-uuid/c92cdf14-10b5-4409-84a7-3dde54da9d1d";
|
||
|
fsType = "btrfs";
|
||
|
options = [ "discard=async" "noatime" "compress=zstd" ];
|
||
|
};
|
||
|
|
||
|
"/boot" = {
|
||
|
device = "/dev/disk/by-uuid/1EE5-C5D9";
|
||
|
fsType = "vfat";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
swapDevices = [
|
||
|
{ device = "/dev/disk/by-uuid/0c0358a1-6ffa-43c4-ab99-e7a8f4e1f09a"; }
|
||
|
];
|
||
|
|
||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
||
|
}
|