xin/gui/kde.nix
2022-08-30 15:55:21 -06:00

31 lines
869 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 { })
akonadi
plasma5Packages.akonadiconsole
plasma5Packages.akonadi-contacts
plasma5Packages.akonadi-search
plasma5Packages.akonadi-mime
libsForQt5.bismuth
kdeconnect
plasma-pass
];
};
}