nix-conf/modules/plasma/default.nix

32 lines
584 B
Nix
Raw Normal View History

2023-12-30 23:39:33 +01:00
{ config, lib, ... }:
2023-05-19 20:53:02 +02:00
2023-12-30 23:39:33 +01:00
let cfg = config.jopejoe1.plasma;
in {
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;
2024-05-01 08:58:36 +02:00
};
2023-12-29 16:43:40 +01:00
2024-05-01 08:58:36 +02:00
displayManager.sddm = {
enable = true;
enableHidpi = true;
};
desktopManager.plasma6 = {
enable = true;
enableQt5Integration = true;
2023-05-19 20:53:02 +02:00
};
};
2023-12-30 23:39:33 +01:00
programs.kdeconnect = { enable = true; };
networking.networkmanager.enable = true;
2023-05-19 20:53:02 +02:00
};
}