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
|
# 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
|
# 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 {
|
raspiimage = nixpkgs-stable.lib.nixosSystem {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
@ -1,23 +1,5 @@
|
||||||
{ config, pkgs, inputs, lib, ... }: {
|
{ config, pkgs, inputs, lib, ... }: {
|
||||||
imports = [ ];
|
imports = [ inputs.nixos-hardware.nixosModules.raspberry-pi-4 ];
|
||||||
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;
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "homescreen";
|
hostName = "homescreen";
|
||||||
|
@ -34,9 +16,11 @@
|
||||||
passwordAuthentication = false;
|
passwordAuthentication = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware.raspberry-pi."4".fkms-3d.enable = true;
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager.gdm.enable = true;
|
displayManager.lightdm.enable = true;
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue