78 lines
1.4 KiB
Nix
78 lines
1.4 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot = {
|
|
initrd.availableKernelModules = [
|
|
"ehci_pci"
|
|
"ahci"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
"sdhci_pci"
|
|
];
|
|
initrd.supportedFilesystems = [ "zfs" ];
|
|
kernel.sysctl = {
|
|
"kernel.nmi_watchdog" = 0;
|
|
"vm.laptop_mode" = 5;
|
|
};
|
|
kernelParams = [ "elevator=none" ];
|
|
supportedFilesystems = [ "zfs" ];
|
|
};
|
|
|
|
fileSystems."/" = {
|
|
device = "rpool/system/root";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/home" = {
|
|
device = "rpool/user/home";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/nix" = {
|
|
device = "rpool/local/nix";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/tmp" = {
|
|
device = "rpool/local/tmp";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/var" = {
|
|
device = "rpool/system/var";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/var/log" = {
|
|
device = "rpool/system/var/log";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/var/tmp" = {
|
|
device = "rpool/system/var/tmp";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-uuid/28E6-5509";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
swapDevices = [ ];
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|