xin/gui/kde.nix
2023-09-01 09:00:36 -06:00

31 lines
729 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (pkgs.libsForQt5) callPackage;
in {
options = {kde = {enable = lib.mkEnableOption "Enable KDE desktop.";};};
config = lib.mkIf config.kde.enable {
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
# Listen for KDE Connect connections on the tailnet
networking.firewall.interfaces = {
"tailscale0" = {
allowedTCPPorts = lib.range 1714 1764;
allowedUDPPorts = lib.range 1714 1764;
};
};
environment.systemPackages = with pkgs; [
(callPackage ../pkgs/tile-gaps.nix {})
libsForQt5.bismuth
plasma5Packages.kdeconnect-kde
waynergy
];
};
}