thelio76: add kdeconnect

This commit is contained in:
Alex 2024-08-15 13:49:30 -04:00
parent f96268c640
commit 1e1ef18bac
4 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
services.kdeconnect = {
enable = true;
package = pkgs.kdePackages.kdeconnect-kde;
indicator = true;
};
}

View File

@ -101,6 +101,12 @@
networking.firewall = {
allowedUDPPorts = [ 51820 22000 ]; # Clients and peers can use the same port, see listenport
allowedTCPPorts = [ 22000 48412 62109 ];
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
# Enable WireGuard

View File

@ -93,6 +93,38 @@
pulse.enable = true;
};
# Enable Syncthing
# service.syncthing = {
# enable = true;
# dataDir = "/home/alex";
# openDefaultPorts = true;
# configDir = "/home/alex/.config/syncthing";
# user = "alex";
# group = "users";
# guiAddress = "127.0.0.1:8384";
# declarative = {
# overrideDevices = true;
# overrideFolders = true;
# devices = {
# "laptop" = { id = "REALLY-LONG-LAPTOP-SYNCTHING-KEY-HERE"; };
# "coredns-server" = { id = "REALLY-LONG-COREDNS-SERVER-SYNCTHING-KEY-HERE"; };
# };
# folders = {
# "code" = {
# path = "/home/alex/code";
# devices = [ "laptop" ];
# versioning = {
# type = "staggered";
# params = {
# cleanInterval = "3600";
# maxAge = "15768000";
# };
# };
# };
# };
# };
# };
# Define a user account. Don't forget to set a password with passwd.
users.users.alex = {
isNormalUser = true;

View File

@ -12,6 +12,7 @@
../../apps/bash
../../apps/firefox.nix
../../apps/git.nix
../../apps/kdeconnect.nix
../../apps/kitty.nix
../../apps/mpv.nix
../../apps/nextcloud.nix