2022-08-25 12:21:35 -06:00
|
|
|
{ config, lib, pkgs, ... }:
|
2022-08-30 11:46:46 -06:00
|
|
|
let inherit (pkgs.libsForQt5) callPackage; in {
|
|
|
|
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-08-25 12:21:35 -06:00
|
|
|
akonadi
|
|
|
|
plasma5Packages.akonadiconsole
|
|
|
|
plasma5Packages.akonadi-contacts
|
|
|
|
plasma5Packages.akonadi-search
|
|
|
|
plasma5Packages.akonadi-mime
|
|
|
|
libsForQt5.bismuth
|
|
|
|
kdeconnect
|
|
|
|
plasma-pass
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|