add x11 and vnc

This commit is contained in:
Grimmauld 2024-02-07 11:57:46 +01:00
parent 5edc29dced
commit 75486c1abf

View file

@ -21,14 +21,6 @@ in {
LC_TIME = "de_DE.UTF-8";
};
services.xserver = {
enable = true;
# displayManager.lightdm.enable = true;
# desktopManager.gnome.enable = true;
videoDrivers = [ "fbdev" ];
};
sound.enable = true;
hardware.pulseaudio.enable = true;
@ -62,16 +54,21 @@ in {
users.groups.spi = {};
console.keyMap = "de";
console.keyMap = "de";
services.xserver = {
layout = "de";
displayManager.startx.enable = true;
xkbVariant = "";
videoDrivers = [ "fbdev" ];
enable = true;
};
boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
kernelParams = [ "quiet" ];
initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ];
loader = {
grub.enable = false;
@ -113,6 +110,7 @@ in {
hardware.enableRedistributableFirmware = true;
system.stateVersion = "23.11";
hardware.bluetooth.enable = false;
environment.systemPackages = with pkgs; [
wget
@ -124,8 +122,20 @@ in {
file
raspberrypi-eeprom
libraspberrypi
xorg.xinit
xorg.xorgserver
xorg.xf86inputevdev
xorg.xf86inputsynaptics
xorg.xf86inputlibinput
xorg.xf86videofbdev
tigervnc
jq
(writeShellScriptBin "connectvnc" "startx `which vncviewer` -fullscreen -viewonly grimmauld-nixos:5900 -passwd /root/.vnc/passwd --") # fixme: change address
];
hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;