Added KDE connect

This commit is contained in:
James Patrick 2022-04-24 22:26:21 -04:00
parent 865b55b8a8
commit 14288dda6b
2 changed files with 40 additions and 1 deletions

View File

@ -1,10 +1,11 @@
{ config, pkgs, ... }: {
imports = [
./1password.nix
./emacs.nix
./dunst.nix
./emacs.nix
./firefox.nix
./gnome-common.nix
./kdeconnect.nix
./kitty.nix
./nextcloud.nix
./spotify.nix

View File

@ -0,0 +1,38 @@
{ config, lib, pkgs, ... }:
let
cfg = config.this.application.kdeconnect;
graphical = config.this.graphical;
in with lib; {
options = {
this.application.kdeconnect.enable = mkOption {
default = graphical.enable;
type = with types; bool;
};
};
config = mkIf cfg.enable {
environment.sessionVariables = optionals (graphical.protocol == "Wayland") {
QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
};
# home-manager.users.james = {
# services.kdeconnect = {
# indicator = true;
# enable = true;
# };
# };
# networking.firewall = {
# allowedTCPPortRanges = [{
# from = 1714;
# to = 1764;
# }];
# allowedUDPPortRanges = [{
# from = 1714;
# to = 1764;
# }];
# };
programs.kdeconnect.enable = true;
};
}