38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ config, lib, ... }: {
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
|
|
kernelModules = [ ];
|
|
luks.devices.cryptroot.device = "/dev/disk/by-uuid/A7FE-359B";
|
|
};
|
|
kernelModules = [ "kvm-intel" ];
|
|
extraModulePackages = [ ];
|
|
};
|
|
|
|
fileSystems = {
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/A7FE-359B";
|
|
fsType = "vfat";
|
|
};
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/542f188a-bcca-438a-97d3-fdaff0cacd83";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=root" "compress=zstd" "noatime" ];
|
|
};
|
|
"/nix" = {
|
|
device = "/dev/disk/by-uuid/542f188a-bcca-438a-97d3-fdaff0cacd83";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=nix" "compress=zstd" "noatime" ];
|
|
};
|
|
"/persist" = {
|
|
device = "/dev/disk/by-uuid/542f188a-bcca-438a-97d3-fdaff0cacd83";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=persist" "compress=zstd" "noatime" ];
|
|
};
|
|
};
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|