From b83da3395c83427716e12bb7972ea3b6b906f57a Mon Sep 17 00:00:00 2001 From: Erik Reinert <4638629+erikreinert@users.noreply.github.com> Date: Fri, 24 May 2024 17:30:24 -0700 Subject: [PATCH] feat(displayManager): enable autoLogin and set defaultSession to i3 - Moved displayManager configuration to the top-level services attribute. - Enabled autoLogin with user set to username. - Set defaultSession to "none+i3". - Enabled lightdm in the nested displayManager configuration. fix(vmware): add necessary kernel modules for VMware - Added "kvm" and "kvm_intel" to boot.kernelModules for better VMware support. --- lib/nixos/configuration-desktop.nix | 17 +++++++++-------- lib/nixos/hardware/vmware/x86_64-linux.nix | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/nixos/configuration-desktop.nix b/lib/nixos/configuration-desktop.nix index db43eff..cd004eb 100644 --- a/lib/nixos/configuration-desktop.nix +++ b/lib/nixos/configuration-desktop.nix @@ -37,6 +37,14 @@ in { }; services = { + displayManager = { + autoLogin = { + enable = true; + user = username; + }; + defaultSession = "none+i3"; + }; + picom.enable = true; twingate.enable = system == "x86_64-linux"; @@ -49,14 +57,7 @@ in { wallpaper.mode = "fill"; }; - displayManager = { - autoLogin = { - enable = true; - user = username; - }; - defaultSession = "none+i3"; - lightdm.enable = true; - }; + displayManager.lightdm.enable = true; windowManager.i3 = { enable = true; diff --git a/lib/nixos/hardware/vmware/x86_64-linux.nix b/lib/nixos/hardware/vmware/x86_64-linux.nix index 6c94c2d..a3a2064 100644 --- a/lib/nixos/hardware/vmware/x86_64-linux.nix +++ b/lib/nixos/hardware/vmware/x86_64-linux.nix @@ -12,7 +12,7 @@ boot.initrd.availableKernelModules = ["ata_piix" "mptspi" "uhci_hcd" "ehci_pci" "sd_mod" "sr_mod"]; boot.initrd.kernelModules = []; - boot.kernelModules = []; + boot.kernelModules = ["kvm" "kvm_intel"]; boot.extraModulePackages = []; fileSystems."/" = {