diff --git a/flake.nix b/flake.nix index d4364ffd..97677730 100644 --- a/flake.nix +++ b/flake.nix @@ -131,6 +131,7 @@ }; # nix build .#nixosConfigurations.raspiimage.config.system.build.sdImage # sudo dd if=result/sd-image/nixos-sd-image-21.11.20211201.a640d83-aarch64-linux.img of=/dev/sda bs=4M conv=fsync status=progress + # make sure to update eeprom https://nixos.wiki/wiki/NixOS_on_ARM/Raspberry_Pi_4#Board-specific_installation_notes raspiimage = nixpkgs-stable.lib.nixosSystem { system = "aarch64-linux"; modules = [ diff --git a/nixos/boxes/homescreen/default.nix b/nixos/boxes/homescreen/default.nix index 8a602bc9..79e3963a 100644 --- a/nixos/boxes/homescreen/default.nix +++ b/nixos/boxes/homescreen/default.nix @@ -1,23 +1,5 @@ { config, pkgs, inputs, lib, ... }: { - imports = [ ]; - boot = { - kernelPackages = pkgs.linuxPackages_rpi4; - tmpOnTmpfs = true; - initrd.availableKernelModules = [ "usbhid" "usb_storage" ]; - kernelParams = [ - "8250.nr_uarts=1" - "console=ttyAMA0,115200" - "console=tty1" - # Some gui programs need this - "cma=128M" - ]; - }; - - boot.loader.raspberryPi = { - enable = true; - version = 4; - }; - boot.loader.grub.enable = false; + imports = [ inputs.nixos-hardware.nixosModules.raspberry-pi-4 ]; networking = { hostName = "homescreen"; @@ -34,9 +16,11 @@ passwordAuthentication = false; }; + hardware.raspberry-pi."4".fkms-3d.enable = true; + services.xserver = { enable = true; - displayManager.gdm.enable = true; + displayManager.lightdm.enable = true; desktopManager.gnome.enable = true; };