fruitbasket/hosts/quitte/hardware-configuration.nix

53 lines
1.1 KiB
Nix
Raw 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 = [ ];
fileSystems."/" =
2023-07-26 16:44:32 +02:00
{
device = "rpool/nixos/root";
fsType = "zfs";
2022-08-16 14:20:36 +02:00
};
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";
};
2023-07-26 16:41:55 +02:00
2022-08-16 14:20:36 +02:00
fileSystems."/boot" =
2023-07-26 16:44:32 +02:00
{
device = "/dev/disk/by-uuid/3278-8D00";
2022-08-16 14:20:36 +02:00
fsType = "vfat";
};
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;
}