mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-06 12:06:54 +01:00
36 lines
705 B
Nix
36 lines
705 B
Nix
{ options, config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
#with lib.internal;
|
|
let
|
|
cfg = config.custom.desktop.plasma;
|
|
in
|
|
{
|
|
options.custom.desktop.plasma = with types; {
|
|
enable = mkBoolOpt false "Whether or not to use KDE plasma as the desktop environment.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
|
|
libinput.enable = true;
|
|
|
|
displayManager.sddm = {
|
|
enable = true;
|
|
enableHidpi = true;
|
|
};
|
|
desktopManager.plasma5 = {
|
|
enable = true;
|
|
useQtScaling = true;
|
|
supportDDC = true;
|
|
};
|
|
};
|
|
|
|
programs.kdeconnect = {
|
|
enable = true;
|
|
package = pkgs.plasma5Packages.kdeconnect-kde;
|
|
};
|
|
};
|
|
}
|