raspberry pi home screen - support x
This commit is contained in:
parent
26c0811124
commit
c70923b2ea
2 changed files with 5 additions and 20 deletions
|
@ -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 = [
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue