Skip to content

Commit

Permalink
feat(displayManager): enable autoLogin and set defaultSession to i3
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
erikreinert committed May 25, 2024
1 parent f3f9fcb commit b83da33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions lib/nixos/configuration-desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ in {
};

services = {
displayManager = {
autoLogin = {
enable = true;
user = username;
};
defaultSession = "none+i3";
};

picom.enable = true;

twingate.enable = system == "x86_64-linux";
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/nixos/hardware/vmware/x86_64-linux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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."/" = {
Expand Down

0 comments on commit b83da33

Please sign in to comment.