nixos-config/modules/plasma.nix
2024-11-07 23:26:04 -05:00

23 lines
477 B
Nix

{
config,
pkgs,
lib,
...
}:
let
cfg = config.sconfig.plasma;
in
{
options.sconfig.plasma = lib.mkEnableOption "Enable Plasma Desktop";
config = lib.mkIf cfg {
services.libinput.enable = true;
services.xserver = {
enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
};
hardware.pulseaudio.enable = true;
environment.systemPackages = [ pkgs.arc-theme ]; # fix hand cursor in firefox
};
}