nixos-config/modules/plasma.nix
2021-10-06 01:00:22 -04:00

19 lines
511 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.sconfig.plasma;
in
{
options.sconfig.plasma = lib.mkEnableOption "Enable Plasma Desktop";
config = lib.mkIf cfg {
services.xserver = {
enable = true;
libinput.enable = true;
displayManager.sddm.enable = true;
displayManager.sddm.settings.Wayland.SessionDir =
"${pkgs.plasma5Packages.plasma-workspace}/share/wayland-sessions";
desktopManager.plasma5.enable = true;
};
hardware.pulseaudio.enable = true;
};
}