31 lines
797 B
Nix
31 lines
797 B
Nix
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
|
|
||
|
|
{
|
||
|
|
imports = [
|
||
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||
|
|
];
|
||
|
|
|
||
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "sdhci_pci" "nvme" ];
|
||
|
|
boot.initrd.kernelModules = [ ];
|
||
|
|
boot.extraModulePackages = [ ];
|
||
|
|
|
||
|
|
# SD card partitions (nixos-uconsole layout)
|
||
|
|
fileSystems."/" = {
|
||
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
||
|
|
fsType = "ext4";
|
||
|
|
options = [ "noatime" ];
|
||
|
|
};
|
||
|
|
|
||
|
|
fileSystems."/boot/firmware" = {
|
||
|
|
device = "/dev/disk/by-label/FIRMWARE";
|
||
|
|
fsType = "vfat";
|
||
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
||
|
|
};
|
||
|
|
|
||
|
|
swapDevices = [ ];
|
||
|
|
|
||
|
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||
|
|
hardware.enableRedistributableFirmware = true;
|
||
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||
|
|
}
|