specializations: Add plasma

This *works*, and the best part is I didn't have to do *anything* (besides
write this configuration file, that is).

Thanks to NixOS, it is possible to have GNOME, Plasma, Hyprland, and
whatever else you want installed on the same computer without those
desktop environments conflicting with each other. This configuration is
done in a fully reproducible and declarative setup with minimal code,
without having to modify any external files or run any imperative
commands.
This commit is contained in:
Donovan Glover 2023-06-17 18:54:41 -04:00
parent f9fdac4925
commit fb2acae89a
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -0,0 +1,22 @@
{ pkgs, lib, ... }:
{
specialisation.plasma.configuration = {
services.xserver = {
enable = true;
displayManager.lightdm.enable = false;
excludePackages = [ pkgs.xterm ];
};
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.displayManager.autoLogin.enable = true;
services.xserver.displayManager.autoLogin.user = "user";
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;
programs.hyprland.enable = lib.mkForce false;
services.greetd.enable = lib.mkForce false;
};
}