meta: Use separate module for plasma

This enables plasma to be used as both a specialization and as a desktop
environment in a virtual machine.
This commit is contained in:
Donovan Glover 2023-06-17 22:23:25 -04:00
parent 0bd8f69705
commit 798aa35edf
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 23 additions and 18 deletions

20
modules/plasma.nix Normal file
View File

@ -0,0 +1,20 @@
{ pkgs, lib, ... }:
{
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;
}

View File

@ -1,22 +1,7 @@
{ 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;
imports = [
../modules/plasma.nix
];
};
}