2020-06-19 19:05:46 +02:00
|
|
|
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
|
|
|
# and may be overwritten by future invocations. Please make changes
|
|
|
|
|
# to /etc/nixos/configuration.nix instead.
|
2022-12-04 08:53:28 +01:00
|
|
|
|
{ lib, ... }:
|
2020-06-19 19:05:46 +02:00
|
|
|
|
|
|
|
|
|
{
|
2022-09-04 13:13:59 +02:00
|
|
|
|
#imports =
|
|
|
|
|
# [ (modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
# ];
|
2020-06-19 19:05:46 +02:00
|
|
|
|
|
2022-09-04 13:13:59 +02:00
|
|
|
|
boot.initrd.availableKernelModules = [ "usbhid" ];
|
2020-06-19 19:05:46 +02:00
|
|
|
|
boot.initrd.kernelModules = [ ];
|
2022-09-04 13:13:59 +02:00
|
|
|
|
boot.kernelModules = [ ];
|
2020-06-19 19:05:46 +02:00
|
|
|
|
boot.extraModulePackages = [ ];
|
2022-09-04 13:13:59 +02:00
|
|
|
|
# mkForce to get rid of "console=ttyAMA0" from sd-image-aarch64.nix
|
|
|
|
|
boot.kernelParams = lib.mkForce [
|
|
|
|
|
"snd_bcm2835.enable_headphones=1"
|
|
|
|
|
];
|
2020-06-19 19:05:46 +02:00
|
|
|
|
|
2022-09-04 13:13:59 +02:00
|
|
|
|
fileSystems."/" = {
|
|
|
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
2020-06-19 19:05:46 +02:00
|
|
|
|
|
2022-09-04 13:13:59 +02:00
|
|
|
|
fileSystems."/boot/firmware" = {
|
|
|
|
|
device = "/dev/disk/by-label/FIRMWARE";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
2020-06-19 19:05:46 +02:00
|
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
2022-09-04 13:13:59 +02:00
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
#networking.wireless.enable = true;
|
|
|
|
|
boot.loader.raspberryPi.firmwareConfig = ''
|
|
|
|
|
gpu_mem=192
|
|
|
|
|
dtparam=audio=on
|
|
|
|
|
'';
|
2020-06-19 19:05:46 +02:00
|
|
|
|
|
2022-09-04 13:13:59 +02:00
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
2020-06-19 19:05:46 +02:00
|
|
|
|
}
|