modules: Add Plasma module

This commit is contained in:
PapaTutuWawa 2021-11-15 23:28:01 +01:00
parent 3fcb0a4d7c
commit e3c51b488d
2 changed files with 31 additions and 0 deletions

View File

@ -22,6 +22,7 @@
./programs/waybar
./programs/zsh
./programs/xournalpp
./programs/plasma
# Services
./services/kanshi

View File

@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
let
cfg = config.ptw.programs.plasma;
in {
options.ptw.programs.plasma = {
enable = lib.mkEnableOption "Enable KDE Plasma";
};
config = lib.mkIf cfg.enable {
services.xserver.desktopManager.plasma5 = {
enable = true;
runUsingSystemd = true;
supportDDC = true;
};
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-kde ];
};
environment.systemPackages = with pkgs; [
yakuake
libsForQt5.okular
libsForQt5.kdeconnect-kde
index-fm
kasts-git
];
};
}