58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports =
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "virtio_pci" "r8169" ];
|
|
kernelModules = [ "dm-snapshot" ];
|
|
luks.devices."backstage" = {
|
|
preLVM = true;
|
|
device = "/dev/disk/by-uuid/7f3ccd2d-8022-491e-baa1-675805919fd7";
|
|
};
|
|
};
|
|
kernelModules = [ "kvm-intel" ];
|
|
kernelParams = [
|
|
"zfs.zfs_arc_max=1024000000"
|
|
];
|
|
};
|
|
|
|
fileSystems."/" =
|
|
{ device = "zpool/root";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/home" =
|
|
{ device = "zpool/home";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/nix" =
|
|
{ device = "zpool/nix";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/nix/store" =
|
|
{ device = "zpool/nix/store";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/boot/efi" =
|
|
{ device = "/dev/disk/by-uuid/4E32-FA6E";
|
|
fsType = "vfat";
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
};
|
|
|
|
swapDevices = [
|
|
{
|
|
device = "/dev/mapper/backstage-swap";
|
|
}
|
|
];
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|