2023-09-17 20:14:32 +02:00
|
|
|
{ config, lib, modulesPath, ... }:
|
2022-08-16 14:20:36 +02:00
|
|
|
|
|
|
|
{
|
2024-03-28 18:06:41 +01:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
2022-08-16 14:20:36 +02:00
|
|
|
|
2024-03-28 18:06:41 +01:00
|
|
|
boot.initrd.availableKernelModules = [ "megaraid_sas" "xhci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
2022-08-16 14:20:36 +02:00
|
|
|
boot.initrd.kernelModules = [ ];
|
2024-03-28 18:06:41 +01:00
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
2022-08-16 14:20:36 +02:00
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
2024-04-14 11:40:00 +02:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "rpool/nixos/root";
|
|
|
|
fsType = "zfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home" = {
|
|
|
|
device = "rpool/nixos/home";
|
|
|
|
fsType = "zfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/nix" = {
|
|
|
|
device = "rpool/nixos/nixnew";
|
|
|
|
fsType = "zfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/lib" = {
|
|
|
|
device = "rpool/nixos/var/lib";
|
|
|
|
fsType = "zfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/log" = {
|
|
|
|
device = "rpool/nixos/var/log";
|
|
|
|
fsType = "zfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/3278-8D00";
|
|
|
|
fsType = "vfat";
|
|
|
|
options = [ "nofail" ];
|
|
|
|
};
|
|
|
|
fileSystems."/boot2" = {
|
|
|
|
device = "/dev/disk/by-uuid/3366-F71E";
|
|
|
|
fsType = "vfat";
|
|
|
|
options = [ "nofail" ];
|
|
|
|
};
|
2022-08-16 14:20:36 +02:00
|
|
|
|
|
|
|
swapDevices = [ ];
|
2023-04-23 18:12:54 +02:00
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2022-08-16 14:20:36 +02:00
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|