Added KDE connect
This commit is contained in:
parent
865b55b8a8
commit
14288dda6b
|
@ -1,10 +1,11 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./1password.nix
|
./1password.nix
|
||||||
./emacs.nix
|
|
||||||
./dunst.nix
|
./dunst.nix
|
||||||
|
./emacs.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./gnome-common.nix
|
./gnome-common.nix
|
||||||
|
./kdeconnect.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./spotify.nix
|
./spotify.nix
|
||||||
|
|
38
modules/applications/kdeconnect.nix
Normal file
38
modules/applications/kdeconnect.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user