2022-08-25 12:21:35 -06:00
|
|
|
{ config, lib, pkgs, ... }:
|
2022-08-30 15:55:21 -06:00
|
|
|
let inherit (pkgs.libsForQt5) callPackage;
|
|
|
|
in {
|
2022-08-30 11:46:46 -06:00
|
|
|
options = { kde = { enable = lib.mkEnableOption "Enable KDE desktop."; }; };
|
2022-08-25 12:21:35 -06:00
|
|
|
|
2022-08-30 11:46:46 -06:00
|
|
|
config = lib.mkIf config.kde.enable {
|
2022-08-25 12:21:35 -06:00
|
|
|
services.xserver.displayManager.sddm.enable = true;
|
|
|
|
services.xserver.desktopManager.plasma5.enable = true;
|
|
|
|
|
|
|
|
# Listen for KDE Connect connections on the tailnet
|
|
|
|
networking.firewall.interfaces = {
|
|
|
|
"tailscale0" = {
|
2022-08-30 11:46:46 -06:00
|
|
|
allowedTCPPorts = lib.range 1714 1764;
|
|
|
|
allowedUDPPorts = lib.range 1714 1764;
|
2022-08-25 12:21:35 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2022-08-30 11:46:46 -06:00
|
|
|
(callPackage ../pkgs/tile-gaps.nix { })
|
2022-09-25 07:13:48 -06:00
|
|
|
plasma5Packages.kdeconnect-kde
|
2022-08-25 12:21:35 -06:00
|
|
|
libsForQt5.bismuth
|
2022-12-20 05:19:03 -07:00
|
|
|
libsForQt5.kalendar
|
2022-12-20 05:20:48 -07:00
|
|
|
libsForQt5.kmail
|
2022-12-20 05:19:03 -07:00
|
|
|
libsForQt5.kontact
|
2022-08-25 12:21:35 -06:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|