Browse Source

Revert setup

main
parent
commit
d9565426c2
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 13
      README.org
  2. 13
      hosts/raspberry/hardware.nix

13
README.org

@ -676,11 +676,11 @@ This section is very much a work in progress. I have struggled to get this devic
{ config, pkgs, lib, inputs, ... }: { config, pkgs, lib, inputs, ... }:
{ {
imports = [
inputs.nixos-hardware.nixosModules.raspberry-pi-4
];
# imports = [
# inputs.nixos-hardware.nixosModules.raspberry-pi-4
# ];
boot.kernelPackages = pkgs.linuxPackages_rpi4;
# boot.kernelPackages = pkgs.linuxPackages_rpi4;
boot.tmpOnTmpfs = true; boot.tmpOnTmpfs = true;
boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ]; boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ];
boot.kernelParams = [ boot.kernelParams = [
@ -703,10 +703,13 @@ This section is very much a work in progress. I have struggled to get this devic
''; '';
}; };
# FIXME: Requires GPU support.
services.xserver.videoDrivers = [ "fbdev" ];
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
hardware.raspberry-pi."4".fkms-3d.enable = true;
# hardware.raspberry-pi."4".fkms-3d.enable = true;
fileSystems = { fileSystems = {
"/" = { "/" = {

13
hosts/raspberry/hardware.nix

@ -2,11 +2,11 @@
{ config, pkgs, lib, inputs, ... }: { config, pkgs, lib, inputs, ... }:
{ {
imports = [
inputs.nixos-hardware.nixosModules.raspberry-pi-4
];
# imports = [
# inputs.nixos-hardware.nixosModules.raspberry-pi-4
# ];
boot.kernelPackages = pkgs.linuxPackages_rpi4;
# boot.kernelPackages = pkgs.linuxPackages_rpi4;
boot.tmpOnTmpfs = true; boot.tmpOnTmpfs = true;
boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ]; boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ];
boot.kernelParams = [ boot.kernelParams = [
@ -29,10 +29,13 @@
''; '';
}; };
# FIXME: Requires GPU support.
services.xserver.videoDrivers = [ "fbdev" ];
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
hardware.raspberry-pi."4".fkms-3d.enable = true;
# hardware.raspberry-pi."4".fkms-3d.enable = true;
fileSystems = { fileSystems = {
"/" = { "/" = {

Loading…
Cancel
Save