Files
nix-config/hosts/rpi4/hardware-configuration.nix
2025-11-26 15:17:08 +01:00

27 lines
690 B
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
};
fileSystems."/storage" =
{ device = "/dev/disk/by-label/STORAGE";
fsType = "ext4";
options = [ "nofail" ];
};
swapDevices = [
{ device = "/swapfile";
size = 4096;
}
];
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
hardware.i2c.enable = true;
}