xin/gui/kde.nix

32 lines
729 B
Nix
Raw Permalink Normal View History

2023-09-12 08:44:05 -06:00
{ config
, lib
, pkgs
, ...
}:
let
2023-07-11 09:12:50 -06:00
inherit (pkgs.libsForQt5) callPackage;
2023-09-12 08:44:05 -06:00
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; [
2023-09-12 08:44:05 -06:00
(callPackage ../pkgs/tile-gaps.nix { })
2022-08-25 12:21:35 -06:00
libsForQt5.bismuth
plasma5Packages.kdeconnect-kde
waynergy
2022-08-25 12:21:35 -06:00
];
};
}