1
0
forked from extern/nix-config
donovanglover-nix-config/modules/plasma.nix
Donovan Glover 27deb6bb43
nix: Simplify
lightdm is only enabled if no other display managers are chosen.

See ./nixos/modules/services/x11/xserver.nix in nixpkgs to verify this.
2023-07-04 16:41:31 -04:00

31 lines
495 B
Nix

{ pkgs, lib, ... }:
{
services.xserver = {
enable = true;
desktopManager = {
plasma5.enable = true;
};
displayManager = {
sddm.enable = true;
autoLogin = {
enable = true;
user = "user";
};
};
excludePackages = [ pkgs.xterm ];
};
systemd.services = {
"getty@tty1".enable = false;
"autovt@tty1".enable = false;
};
programs.hyprland.enable = lib.mkForce false;
services.greetd.enable = lib.mkForce false;
}