- Add disko flake input + partition config (/boot/firmware, /, /home) - Add cm5-backlight-fix service as display fallback - Add enable-gpio23-usb-hub service for internal USB hub - Add mt7921u kernel module for MediaTek AC1200 WiFi - Add gpiod package for GPIO userspace control
38 lines
983 B
Nix
38 lines
983 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 = [ ];
|
|
|
|
# uConsole CM5 eMMC partitions managed by disko
|
|
# Labels defined in disko-config.nix
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/NIXOS_UCM5";
|
|
fsType = "ext4";
|
|
options = [ "noatime" ];
|
|
};
|
|
|
|
fileSystems."/boot/firmware" = {
|
|
device = "/dev/disk/by-label/FIRMWARE";
|
|
fsType = "vfat";
|
|
options = lib.mkForce [ "fmask=0022" "dmask=0022" ];
|
|
};
|
|
|
|
fileSystems."/home" = {
|
|
device = "/dev/disk/by-label/NIXOS_HOME";
|
|
fsType = "ext4";
|
|
options = [ "noatime" ];
|
|
};
|
|
|
|
swapDevices = [ ];
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
|
hardware.enableRedistributableFirmware = true;
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
|
}
|