fruitbasket/hosts/quitte/hardware-configuration.nix

53 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2023-09-17 20:14:32 +02:00
{ config, lib, modulesPath, ... }:
2022-08-16 14:20:36 +02:00
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2022-08-16 14:20:36 +02: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 = [ ];
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 = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2022-08-16 14:20:36 +02:00
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}