xin/gui/kde.nix

27 lines
765 B
Nix
Raw Normal View History

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 { })
(callPackage ../pkgs/rkvm.nix { })
2022-08-25 12:21:35 -06:00
libsForQt5.bismuth
plasma5Packages.kdeconnect-kde
waynergy
2022-08-25 12:21:35 -06:00
];
};
}