mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
20 lines
593 B
Nix
20 lines
593 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;
|
|
environment.systemPackages = [ pkgs.arc-theme ]; # fix hand cursor in firefox
|
|
};
|
|
}
|