add x11 and vnc
This commit is contained in:
parent
5edc29dced
commit
75486c1abf
1 changed files with 19 additions and 9 deletions
|
@ -21,14 +21,6 @@ in {
|
||||||
LC_TIME = "de_DE.UTF-8";
|
LC_TIME = "de_DE.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
# displayManager.lightdm.enable = true;
|
|
||||||
# desktopManager.gnome.enable = true;
|
|
||||||
videoDrivers = [ "fbdev" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware.pulseaudio.enable = true;
|
hardware.pulseaudio.enable = true;
|
||||||
|
|
||||||
|
@ -62,16 +54,21 @@ in {
|
||||||
|
|
||||||
users.groups.spi = {};
|
users.groups.spi = {};
|
||||||
|
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
layout = "de";
|
layout = "de";
|
||||||
|
displayManager.startx.enable = true;
|
||||||
xkbVariant = "";
|
xkbVariant = "";
|
||||||
|
videoDrivers = [ "fbdev" ];
|
||||||
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
|
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
|
||||||
|
kernelParams = [ "quiet" ];
|
||||||
|
|
||||||
initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ];
|
initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ];
|
||||||
loader = {
|
loader = {
|
||||||
grub.enable = false;
|
grub.enable = false;
|
||||||
|
@ -113,6 +110,7 @@ in {
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
hardware.bluetooth.enable = false;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wget
|
wget
|
||||||
|
@ -124,8 +122,20 @@ in {
|
||||||
file
|
file
|
||||||
raspberrypi-eeprom
|
raspberrypi-eeprom
|
||||||
libraspberrypi
|
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" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue