From 545c94a27b259c37a51a118c77061343fa9f2081 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Fri, 10 Jan 2025 15:43:08 +0800 Subject: [PATCH] Update --- iso/gpu.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/iso/gpu.nix b/iso/gpu.nix index e35440ff..f9fee7b4 100644 --- a/iso/gpu.nix +++ b/iso/gpu.nix @@ -25,7 +25,6 @@ virtualisation.vmware.guest.enable = pkgs.stdenv.hostPlatform.isx86; virtualisation.hypervGuest.enable = true; services.xe-guest-utilities.enable = pkgs.stdenv.hostPlatform.isx86; - virtualisation.virtualbox.guest.enable = true; # Enable plymouth boot.plymouth.enable = true; @@ -33,6 +32,21 @@ environment.defaultPackages = with pkgs; [ weston ]; + + services.xserver.displayManager.gdm = { + enable = true; + # autoSuspend makes the machine automatically suspend after inactivity. + # It's possible someone could/try to ssh'd into the machine and obviously + # have issues because it's inactive. + # See: + # * https://github.com/NixOS/nixpkgs/pull/63790 + # * https://gitlab.gnome.org/GNOME/gnome-control-center/issues/22 + autoSuspend = false; + }; + services.displayManager.autoLogin = { + enable = true; + user = "nixos"; + }; hardware.graphics = { enable = true; extraPackages = with pkgs; [