mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
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:
parent
f9fdac4925
commit
fb2acae89a
22
specializations/plasma.nix
Normal file
22
specializations/plasma.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user