feat: add initial rpi4 config

This commit is contained in:
Felix Schröter 2020-09-27 14:27:25 +02:00
parent 10a370ceac
commit a1806d8094
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
4 changed files with 112 additions and 0 deletions
hardware

22
hardware/rpi4.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, lib, pkgs, modulesPath, ... }:
{
boot.initrd.availableKernelModules = [ "usbhid" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/boot" =
{ device = "/dev/disk/by-label/NIXOS_BOOT";
fsType = "vfat";
};
fileSystems."/" =
{ device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
swapDevices = [ ];
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}