nix-conf/modules/plasma/default.nix

35 lines
565 B
Nix
Raw Normal View History

2023-12-29 16:43:40 +01:00
{ config, lib, pkgs, ... }:
2023-05-19 20:53:02 +02:00
2023-12-29 16:43:40 +01:00
let
cfg = config.jopejoe1.plasma;
in
2023-05-19 20:53:02 +02:00
{
2023-12-29 16:43:40 +01:00
options.jopejoe1.plasma = {
enable = lib.mkEnableOption "Enable KDE Plasma";
};
2023-05-19 20:53:02 +02:00
2023-12-29 16:43:40 +01:00
config = lib.mkIf cfg.enable {
services = {
xserver = {
2023-05-19 20:53:02 +02:00
enable = true;
2023-12-29 16:43:40 +01:00
libinput.enable = true;
displayManager.sddm = {
enable = true;
enableHidpi = true;
};
desktopManager.plasma5 = {
enable = true;
useQtScaling = true;
};
2023-05-19 20:53:02 +02:00
};
};
2023-12-29 16:43:40 +01:00
programs.kdeconnect = {
enable = true;
};
2023-05-19 20:53:02 +02:00
};
}