forked from extern/nix-config
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:
parent
0bd8f69705
commit
798aa35edf
20
modules/plasma.nix
Normal file
20
modules/plasma.nix
Normal 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;
|
||||
}
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user