nix-conf/nixos-modules/plasma/default.nix

36 lines
594 B
Nix
Raw Normal View History

2023-12-30 23:39:33 +01:00
{ config, lib, ... }:
2023-05-19 20:53:02 +02:00
2024-07-10 23:02:54 +02: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;
2024-05-01 08:58:36 +02:00
};
2023-12-29 16:43:40 +01:00
2024-05-01 09:00:08 +02:00
libinput.enable = true;
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
};
};
2024-07-10 23:02:54 +02:00
programs.kdeconnect = {
enable = true;
};
2023-12-30 23:39:33 +01:00
networking.networkmanager.enable = true;
2023-05-19 20:53:02 +02:00
};
}