modules: Add Plasma module
This commit is contained in:
parent
3fcb0a4d7c
commit
e3c51b488d
@ -22,6 +22,7 @@
|
||||
./programs/waybar
|
||||
./programs/zsh
|
||||
./programs/xournalpp
|
||||
./programs/plasma
|
||||
|
||||
# Services
|
||||
./services/kanshi
|
||||
|
30
modules/programs/plasma/default.nix
Normal file
30
modules/programs/plasma/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user